Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

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

@yowzadave

Description

@yowzadave

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".

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions