Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storage - storing a filename with a "#" character causes filename to be silently mangled #149

Open
yowzadave opened this issue Mar 2, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@yowzadave
Copy link

yowzadave commented Mar 2, 2023

Bug report

Describe the bug

Storing a filename with a "#" character results in everything subsequent to the "#" being ignored in the stored filename. It seems like this is due to the name being turned into a URI with the "#" not URI-encoded, which results in Supabase interpreting it as a hash.

To Reproduce

Store any object as a file with a "#" character:

const result = await supabase.storage
  .from("files")
  .upload("files/My#1FavoriteBands.png", data, { contentType: "image/png" });

The resulting object will have the name "files/My".

@yowzadave yowzadave added the bug Something isn't working label Mar 2, 2023
@soedirgo soedirgo transferred this issue from supabase/supabase-js Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant