We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The supabase.storage.from_().create_signed_url() method returns an invalid URL if the file name contains any character that should be URI-encoded.
supabase.storage.from_().create_signed_url()
my-bucket
my file.txt
response = supabase.storage.from_("my-bucket").create_signed_url("my file.txt", 120) print(response["signedURL"])
The output is the invalid URL:
https://<supabase_url>/storage/v1/object/sign/my-bucket/my file.txt?token=<token>
The file name should be URI-encoded before using it to build the URL, for the previous example I expect an output like:
https://<supabase_url>/storage/v1/object/sign/my-bucket/my%20file.txt?token=<token>
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Bug report
Describe the bug
The
supabase.storage.from_().create_signed_url()
method returns an invalid URL if the file name contains any character that should be URI-encoded.To Reproduce
my-bucket
my file.txt
to the bucketThe output is the invalid URL:
Expected behavior
The file name should be URI-encoded before using it to build the URL, for the previous example I expect an output like:
The text was updated successfully, but these errors were encountered: