0

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 :-)

ollysmall
  • 633
  • 2
  • 7
  • 13

2 Answers2

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

Community
  • 1
  • 1
onyeka
  • 1,517
  • 13
  • 18
-1

Have a fast look a the source code. No, it doesn't provide a support for that.

name_no
  • 354
  • 2
  • 9