Can I extend the file extension list in AllowedFile.php? #9634
-
I try to upload files to my assets (Statamic 4.51.0) with extensions like ".xml" and ".sdlxliff". They are rejected with a CP message of "The given data is invalid." I believe that this is monitored by Can I extend this list somehow in a file in I need to save whatever filetype it is – preferrably ".*" ... (It's only for internal use, and I'm the only user.) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, you can add this option to your https://github.com/statamic/cms/blob/4.x/config/assets.php#L201-L211 |
Beta Was this translation helpful? Give feedback.
Yes, you can add this option to your
assets
config to allow additional file extensions:https://github.com/statamic/cms/blob/4.x/config/assets.php#L201-L211