Category: Supabase and databases

Supabase Storage: Signed Upload URL Rejects the File

Read this guide in Polish

The client gets a signed address to upload, but the request cannot add a file.

How to identify the source of the problem

Check token time, picket and the exact path for which the signature was issued.

Compare the result for the authorized and unauthorised user, project name and exact error code.

Repair steps

Create an address just before shipping and transmit to the authorized user only.

How to Test Solution

One-time transfer works for the right object, without access to other files.

Security and restrictions

Change permissions and scheme first on test data with backup. Do not put service role in your browser.