Skip to main content
POST
Mint a client-upload URL

Authorizations

payload-token
string
cookie
required

Payload authentication cookie. These endpoints run Payload access control; an authenticated admin session is required.

Body

application/json
collectionSlug
string
required

Target upload collection.

filename
string
required

Original file name.

filesize
integer
required

File size in bytes.

mimeType
string
required

File MIME type.

Response

Signed upload URL and the resolved storage path.

clientUploadContext
object

Send it unchanged as the clientUploadContext of the Payload upload.

filename
string

Sanitized file name.

headers
object

Headers to send with the PUT. The storage rejects the upload without them.

method
string
Example:

"PUT"

prefix
string

Resolved storage path prefix the file lands under.

url
string

Signed/presigned URL to PUT the file to.