Reference
Remy Reference/agent/files.createUploadToken
?

files.createUploadToken

Mint a token so the browser uploads straight to storage. Bytes never pass through a method.
Store.createUploadToken(options) → token

Mints a short-lived token the browser uploads against, so a user's file goes straight to storage and never passes through a method. The frontend hands the token to platform.upload; scope it with the content type and size you expect.

Parameters
options
object
Required{ contentType, maxSize }
Client-direct upload
// backend
return Uploads.createUploadToken({ contentType, maxSize: 25e6 });