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
- Storage files aren’t showing on mobile
hi, what can be the problem? i have a storage and there are images in it, the permissions are read for All Users, everything is fine on desktop, but on mobile t...
- Delete storage files all at once
I am using Appwrite Cloud. I want to delete all storage files in my bucket similar to how I can select all documents in a collection and delete them all at once...
- Storage images are not showing on mobile
Hi, can anyone help me? I have some images on the storage, and it is not shown on mobile, on desktop everything is fine.