﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
15590	Document how to change the path of a FileField	Simon Litchfield	Jorge Barata	"Currently we can't set filefield/imagefield's underlying filename, without loading the file and feeding it's contents into save(). Obviously this is grossly inefficient. 

This is a simple patch that allows you to set the path like so --

{{{
instance.myfile.path = 'uploads/new-path.avi'
}}}

Previously, instance.myfile.path is read only. If you set instance.myfile then instance.myfile.path etc will raise a ValueError, The 'myfile' attribute has no file associated with it.

Works with FileField, ImageField, and anything else that uses a File object that is subclassed from FieldFile. 

Check stackoverflow, google, etc- lots of people banging their heads trying to figure out why they can't simply set the filename."	New feature	closed	Documentation	dev	Normal	fixed	filefield imagefield path filename	ledermann@… kitsunde@… cmawebsite@…	Accepted	0	0	0	0	1	0
