Datapre-signed URLsigned URLSAS token

Presigned URL

Definition

A presigned URL embeds a signature, made with the application's credentials, that authorises one specific operation on one object key until an expiry time.

In practice

Proxying uploads through application servers holds a worker for the whole transfer and pays for the bandwidth twice. With a presigned URL, the app checks authorisation, generates a URL in milliseconds, and the client sends the bytes straight to storage; a storage event then triggers validation or processing.

Anyone holding the URL can use it until it expires, so keep expiries short, choose the object key on the server, and fix the content type and maximum size in the signature policy. Treat the uploaded object as untrusted until it has been checked, and do not mark it usable on upload alone.

Example

The API returns PUT https://media.s3.amazonaws.com/u/42/8f3a.jpg?X-Amz-Expires=300&X-Amz-Signature=..., valid for 5 minutes and only for that key.