Hi, can someone help me with the following please: -

I have a newform with an imagefield. The upload is working fine [using
save_FOO_file(filename, raw_contents)], but I'm not sure what value to
assign to the model's imagefield, or how to assign it.

The django documentation for save_FOO_file says <begin_quote> If a
file with the given filename already exists, Django adds an underscore
to the end of the filename (but before the extension) until the
filename is available. <end_quote>

How do I know what filename the uploaded file eventually get? How do I
assign this to the model's imagefield before calling save() on the
model?

Thanks.
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to