Closed lqez closed 6 years ago
Why use len()
instead of .size
? Can you add regression tests?
@timgraham I misunderstood the previous code. I'll add a test for it. Thanks.
The build error occurred on Docker/Travis side. https://travis-ci.org/neutronX/django-markdownx/jobs/434021654
@timgraham Thanks for your review. I updated PR.
_size
should not be used for getting the file size. Or we getAttributeError: 'InMemoryUploadedFile' object has no attribute '_size'
error with latest Django. XRef: https://github.com/django/django/pull/9769/files