UTF-8 support for Storage

Using the javascript API: const filePath = myBucket/${myString}/${mystring+'.blob'}; If myString is "Sønderjyske", it fails: Invalid key: myBucket/Sønderjyske /Sønderjyske.blob If string is "Sonderjyske", there is no error. Is there a fix?
1 Reply
inder
inder4h ago
There is an open issue regarding this https://github.com/supabase/storage/issues/133#issuecomment-1098845258 You can encode the key to base64_url to mitigate this. https://www.npmjs.com/package/base64url

Did you find this page helpful?