Closed espenlg closed 6 months ago
In #9037, we introduced some validation to prevent files with unwanted file extensions being uploaded without being specifically whitelisted.
The .glb
file extension is not part of the file extensions whitelist in Statamic. However, you can add additional file extensions as needed, in your config/statamic/assets.php
config file:
/*
|--------------------------------------------------------------------------
| Additional Uploadable Extensions
|--------------------------------------------------------------------------
|
| Statamic will only allow uploads of certain approved file extensions.
| If you need to allow more file extensions, you may add them here.
|
*/
'additional_uploadable_extensions' => [
'glb',
],
Thank you for clearing that up @duncanmcclean 👏
Bug description
I'm having problems uploading GLB-files to the assets container. I've tried to disable the automatic image processing just in case, and I've tried both on my local dev-environment and on the production-environment, but still the same. Uploading other non-image files as PDF or MP4 is not a problem. File size is not the issue, it is well within the configured limits.
This is a screenshot from CP;
..and this is what the POST request returns:
How to reproduce
In short - try to upload a file with extension .glb to the assets container. It doesn't have to be an actual .glb 3d-model file, I tried to rename a jpg to glb just to check and I get the same error.
Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
No response