Configurable Expiration Time for Presigned Upload Url #15394
Unanswered
jfischoff
asked this question in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The presigned upload url feature for the Storage API uses a fixed expiration time: https://github.com/supabase/storage-api/pull/282/files#diff-c3095d5010e65c52737a98a5d618ea24049ebe90c8470752426081d70ed6e012R170
This is inconsistent with the presigned download urls, which expect a body that includes a configurable expiration time.
The hardcoded time makes the feature unusable if you application cannot upload the resource in 2 hours (according to the swagger api doc although code defaults to an hour fwiw).
The upload API should work like the get presigned creation apis and take in a expiration time vs being hardcoded.
All reactions