Adds support for uploading/fetching files via presigned urls.
This adds two new routes full storage rules are applied to these routes.
POST storage/presign/...
GET storage/presign/...
Each endpoint returns a json object
{
key: fileKey,
url: presignedUrl
}
URL expiry defaults to a new env variable S3_PRESIGNED_URL_EXPIRES_DEFAULT this has a default value of 24 hours. However, the expiry of the url can be modified in each request by passing the expires parameter. e.g.
GET storage/presign/users/${userID}avatars/headshot.jpg?expires=100 would expire in 100 seconds.
Adds support for uploading/fetching files via presigned urls.
This adds two new routes full storage rules are applied to these routes. POST
storage/presign/...
GETstorage/presign/...
Each endpoint returns a json objectURL expiry defaults to a new env variable
S3_PRESIGNED_URL_EXPIRES_DEFAULT
this has a default value of 24 hours. However, the expiry of the url can be modified in each request by passing theexpires
parameter. e.g. GETstorage/presign/users/${userID}avatars/headshot.jpg?expires=100
would expire in 100 seconds.Fixes #472