Configure Gogs docker repository.upload Allowed_Types

how do you set the Allowed_Types in the official Docker Container?
I’ve tried to set it in /data/gogs/conf/app.ini and /data/gogs/custom/conf/app.ini with no success.

In the 2nd I’ve put in
ALLOWED_TYPES = image/jpeg|image/png|application/pdf|application/zip|text/plain

The file selection dialog shows only jpg and png files and if I select all files and use a text/plain file it says in the upload area that this filetype is not allowed.

How do I do it?

Where did you try to upload? Issue comment or repository file upload?

This works since a long time. :wink:
Was fixed in an update.

1 Like