You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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',
],
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
The text was updated successfully, but these errors were encountered: