as the title says, is there a way to only allow for images to be uploaded when using django-multiupload? At the moment my users can upload any file but I want to limit them to only images. Any help/advice would be much appreciated :-)
Asked
Active
Viewed 464 times
2 Answers
0
You could consider adding a check to the validate function in the source code to only accept files with image extensions. I'm not 100% sure but that should work, take a look at the answer here Only accept a certain file type in FileField, server-side
especially this answer: https://stackoverflow.com/a/27081099/1306336