Configuring allowed attachment file types


Is there a way to configure which attachment file types is allowed to upload in a questionaire? I can’t find it in the admin interface.

Running v3.6.7



no, it’s not actually possible do implement such a filter on file upload functionality.

I opened up the feature there, in a simplified way:
Enable possibility to filter out which attachment type is allowed

If you want to work on it, or if you want to sponsor such a development, it would be amazing! :slight_smile:




Okay :slight_smile:

I suppose the way would be to add an entry in the database to keep the list of “allowed filetypes” and use the following python function or similar:


m.lower().endswith(('.png', '.jpg', '.jpeg'))

Where .png etc has been “extracted” from the DB.

Now, I’m not a developer - though I do UNIX administration on daily basis, so I wouldn’t know exactly where to look - but if I come across something, I’ll let you know :slight_smile: