Closed jxltom closed 6 years ago
Thanks for this PR, @jxltom, a much smarter implementation than what I had previously...I appreciate it!
Glad to contribute :smile:
Hey @jxltom !
My apologies for taking so much time to get this into a proper PyPI release but it's finally included as part of the 1.10 release. Here's how you can get it:
$ pip install django-versatileimagefield==1.10
Thanks again for your stellar contribution to this library, I appreciate it!
Thank you :smiley: @respondcreate
By default,
InMemoryUploadedFile
's size is None and callinglen
function will raiseTypeError: 'NoneType' object cannot be interpreted as an integer
error.This PR assigns actual size for
InMemoryUploadedFile
and thenlen
can be called in later postprocess such as uploading to s3 or other remote storage.