Get Upload Strategy (Direct or Presigned URL)
Client
Get Upload Strategy (Direct or Presigned URL)
Returns upload strategy based on storage backend (S3 returns presigned URLs, local returns direct upload endpoints)
POST
Get Upload Strategy (Direct or Presigned URL)
Authorizations
Path Parameters
Pattern:
^[a-zA-Z0-9_-]+$Body
application/json
Response
Upload strategy details
Upload method - presigned for S3, direct for local storage
Available options:
presigned, direct Example:
"presigned"
URL to upload the file to
Example:
"https://s3-bucket.amazonaws.com/"
Generated unique key for the file
Example:
"profile-photo-1234567890-abc123.jpg"
Whether upload confirmation is required
Example:
true
Form fields for presigned POST (S3 only)
Example:
{
"bucket": "my-s3-bucket",
"key": "app-key/avatars/profile.jpg",
"X-Amz-Algorithm": "AWS4-HMAC-SHA256"
}URL to confirm the upload (if confirmRequired is true)
Example:
"/api/storage/buckets/avatars/objects/profile.jpg/confirm-upload"
Expiration time for presigned URL (S3 only)
Example:
"2025-09-05T01:00:00Z"