Hi all,

I have created a modelform that has an Imagefield in it. I want to override
the save function and manually create a filefield with an image that
already exists in the file storage (S3). So the things I have to do would
be:

* Download the image from S3 and save it to a temporary file
* Create a TemporaryUploadedFile and add it the the cleaned_data dictionary.
* Continue with the save method.

This should upload the file again and then connect the file to the model.

Has anyone done this before and could point me in the correct direction on
howto create the TemporaryUploadedFile object?

Regards,

Andréas

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALXYUbmVzGx_wR0AUPsw%2B3kt%3D29envu6RebDo0GYr6zvpSq_YA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to