Hi,

I am somehow confused. I am using this in a model:
file = models.FileField(upload_to="tmp/tracks/", max_length = 1000)

and than I am doing this in a form:
new_track = form.save(commit = False)

after that I want to access the file to do some stuff with it, like
print new_track.file.path

when I do this, the path to the file is without the extra path from
"upload_to" in the model. how can I access the full path to the file?
Or, where will the file be saved to, because it also does not exist
within the "upload_to" dir.

Maybe it would be a solution to access the temp file, does someone
know how to access the path string?

regards, tom


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to