statamic / ideas

💡Discussions on ideas and feature requests for Statamic
https://statamic.dev
30 stars 1 forks source link

Restrict Asset Upload Validator to Specific File Types #1116

Closed JimSeven closed 5 months ago

JimSeven commented 5 months ago

Currently, Statamic allows one to extend file format support as can be seen in Pull Request #9037 . Uploading files with a specific file format is, however, not possible. This would help increase the security by allowing developers to limit described containers uploading only to a few given formats such as JPG, PNGs only. This will deny uploading of file types that could be potentially dangerous (like SVGs).

Adding something like that doesn't only increase security to websites but allows for much control as far as the type of content that is being uploaded.

Thank you for the consideration to feature request. Best Steffen

jasonvarga commented 5 months ago

Duplicate of #2