Chive / django-multiupload

Dead simple drop-in multi file upload field for Django forms using HTML5's multiple attribute.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Native Multiple Upload

dudanogueira opened this issue · comments

Just for the record, seems that newer versions of Django will break with this app because of some validators.

There is a "native" way do handle multiple uploads, as described here:

https://docs.djangoproject.com/en/1.11/topics/http/file-uploads/#uploading-multiple-files

Confirmed - pasting some of the error here just in case it helps w/ discoverability

File "/usr/local/lib/python3.7/site-packages/django/core/validators.py", line 515, in validate_image_file_extension
return FileExtensionValidator(allowed_extensions=get_available_image_extensions())(value)
File "/usr/local/lib/python3.7/site-packages/django/core/validators.py", line 484, in __call__
extension = Path(value.name).suffix[1:].lower()
AttributeError: 'list' object has no attribute 'name'

Still going strong in 3.2 :)