File picker widget in a smart action
No option to specify allowed file extensions
Option to specify allowed file extensions
I noticed that the file picker widget can be configured from the layout editor to specify a list of allowed file extensions:
But when the file picker is used in a smart action, this cannot be customized from the layout editor, nor from the field definition in the smart action (programmatically).
Ideally it would be nice to be able to specify the file extensions programatically as I would like to be able to dynamically change the allowed extensions (based on a property of the entry) using the load hook.
I am wondering if this is an existing feature because I couldn’t find anything related to that in the documentation.