Is it possible to only allow specific file types per File Storage?

Hello! Sorry if this has been asked before. I didn’t find an answer in search engines.I have two File Storages set up:

  • Documents (/fileadmin/documents/*)
  • Images (/fileadmin/images/*)

Is it possible to only allow specific file types per File Storage?

  • Documents (.pdf, .doc, .docx, .etc...)
  • Images (.jpg, .jpeg, .png, .gif, .webp, .etc...)

If yes, how? I’m running TYPO3 11.5
Thanks in advance for any clues.

Hi Marcelo!

That’s not possible, but it sounds like a nice little features request. Feel free to submit it. Maybe someone takes it on.

Best wishes

Mathias

Hi Mathias, thanks for pointing me to the right direction.

I have created a Feature request and included a PHP class and PageTS config as an example of what I was able to create using the BeforeFileAddedEvent listener. Maybe something like that can be included in future TYPO3 versions…

Thank you!

1 Like