On Feb 4, 7:44 pm, Brian Morton wrote:
> However, I am not sure how to get access to the
> content type reported by the browser for the uploaded file in the
> model save method. Can you access the request from a model save in
> the admin?
You can get the content type
I am working with PIL to resize and thumbnail images during a model
save method. I am using SimpleUploadedFile as a wrapper to facilitate
the thumbnail field's save method. SimpleUploadedFile requires that
the proper content type be passed in as an argument.
The trouble is, I may be working
2 matches
Mail list logo