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.

mimeType
string
required

File MIME type.

filesize
number

File size in bytes.

Response

Signed upload URL and the resolved storage path.

filename
string

Sanitized file name.

method
string
Example:

"PUT"

prefix
string

Resolved storage path prefix the file lands under.

url
string

Signed/presigned URL to PUT the file to.