Uploading Multiple Types of Files using Django Jquery File Upload -
when searching django jquery uploading library, came across one. https://github.com/alem/django-jfu it seems neat , useful. so, decided give shot , started read demo code. however, highlighted line of code hard understand. in file demo/photos/views.py class home( generic.templateview ): template_name = 'base.html' def get_context_data(self, **kwargs): context = super( home, self ).get_context_data( **kwargs ) **context['accepted_mime_types'] = ['image/*']** return context if want configure able upload both pictures (.jpg, .png, etc.) , .pdf files. how shall highlighted line modified? guess 1 context['accepted_mime_types'] = ['image/* text/plain'] is correct? on other hand, photo_upload_form.html shall changed from {% block js_opts %} sequentialuploads: true, acceptfiletypes: /(\.|\/)(png|gif|jpe?g)$/i {% endblock %} to {% block js_opts %} sequentialuploads: true, acceptfiletypes: /(\.|\/)(png|g...