Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Limit content type of images #34

Open
2 tasks
joelvdavies opened this issue Oct 4, 2024 · 0 comments
Open
2 tasks

Limit content type of images #34

joelvdavies opened this issue Oct 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@joelvdavies
Copy link
Collaborator

joelvdavies commented Oct 4, 2024

Images should only be uploaded with a content type such as image/*. If we were uploading them the same was as for attachments we could for example use a condition like ["starts-with", "$Content-Type", "image/"])). We should at least

  • Reject requests that use an image content type that doesn't start with images/
  • Investigate whether it is worth further limiting them to further specific types
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
Status: Up Next
Development

No branches or pull requests

1 participant