Restrict media uploads to a certain type?

Is there a provision to restrict uploads to specific image types? We have a very specific security policy and are interested in preventing certain image types. We don’t want to use our network or firewall to ban all images as that will break the gitlab UI (at least our current tests show this happens).

Any ideas?

What image types do you want to restrict?
This may be a little more complex than just checking the file extension

Restricting uploads to only PNG, SVG, and GIF is a rule we need to enforce. I hope this is possible. Thanks!

It looks like there is no configuration to restrict uploads to specific filetype, could you please create a feature suggestion here: Also cross-link this post.

1 Like