﻿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
15646	Document that the FileField's path can not be relied on until the model is saved	anonymous	nobody	"The FileField's .path attribute misses the path given in 'upload_to'.

Example:
In settings.py:
{{{
MEDIA_ROOT = '/somewhere/'
}}}

In some model:
{{{
data = models.FileField(upload_to='files')
}}}

In the view that handles the file upload:
{{{
print data.path
}}}

This prints '/somewhere/filename' but if I am correct it shall print '/somewhere/files/filename'
Exact Version is 1.2.5(-1) (current version in debian/wheezy)
upload_to='files/' does not remedy this issue.
I sincerely hope that I am not wasting your time.
Thank you."	Bug	closed	Documentation	1.2	Normal	fixed	storage system path upload_to		Accepted	1	0	0	0	1	0
