imagefield errors if upload is larger than FILE_UPLOAD_MAX_MEMORY_SIZE
|Reported by:||nickname123||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
If you use an imagefield and upload an image larger than FILE_UPLOAD_MAX_MEMORY_SIZE (which is smaller than digital camera photos by default) you will get the error: 'TemporaryFile' object has no attribute 'closed'
I guess this is due to the file being streaming to disk instead of read to memory and the ImageField calls the function to get the width and height before the file has been completely uploaded.
I would expect the field to wait until the file is fully uploaded to process the image so that it does not throw errors.