
Hello, I have a bucket that accepts *.jpg. It can accept any jpg file successfully. However, when I upload image with *.JPG, it fails with error: Warning: An unhandled error was caught from submitForm() Error: File extension not allowed
Is there a way to make the whitelisted extensions case-insensitive? Thanks.

As of now there going to different between lower & upper case. You can see here https://github.com/utopia-php/storage/blob/main/src/Storage/Validator/FileExt.php#L50 the checking process is pretty arbitrary.
For now, you can the best option would be to ass all the uppercase version for your extensions, From what I can tell it sounds like good issue / feature request.

hey Binyamin, i just realized that it allows free entries. My apologies. i thought i was only allowed to select the options indicated in the fields only

i have proceeded to add all the uppercase version of the extensions

thanks so much for this

[SOLVED] Bucket does not allow extension that is of uppercase letter

👍
Recommended threads
- Unable to View / Edit Bucket Files
Hi! I am unable to view / edit Bucket Files. While Previews work just fine, clicking the actual file to view or edit it produces the errors seen in the attache...
- [SOLVED] how does uploading work with no...
It's been a while since i used my appwrite instance. I spun up a server 1.7.4 and downloaded the newest cli. Created a fucntion and the node-appwrite packed doe...
- getFilePreview() doesn't work with react...
const fileurl - await storage.getFilePreview(appwriteConfig.storageId, fileId, 2000, 2000, 'top', 100); console.log('Uploaded file URL: ' + fileUrl); // LOG -> ...
