Your frontend uploads a file to a presigned URL, and the browser gets 403 SignatureDoesNotMatch . The same URL works from curl or from your server. The error means the storage service rebuilt the signature from the request it received, and the result did not match the one in the URL ( AWS, Troubleshoot Signature Version 4 ). So the browser sent a request that your signer did not expect.
This post gives you a short order of checks. First compare what was signed with what the browser sent. Then replay the request with curl. Then fix the one cause the comparison points to. It covers presigned PUT uploads to Amazon S3, Cloudflare R2, Backblaze B2 and MinIO. Presigned POST form uploads use a different scheme, and neither R2 ( Cloudflare R2, Presigned URLs ) nor B2 ( Backblaze B2, S3-Compatible API ) supports them.
The commands and the program below come from the documentation linked at each step.…