Re: Getting uploaded file content type in model save

2009-02-05 Thread varikin
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

Getting uploaded file content type in model save

2009-02-04 Thread Brian Morton
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