Upload a new file. Requires basic:write
scope to be accessible
Creates a temporary unique file Id and returns presigned URLs for uploading a binary file in multiple parts. After the upload is completed, this Id can be used (once only) to permanently link the file to a specific type (e.g., Asset, Attachment, Revision) via another mutation.
When chunkSize
is provided as null
(to be the future default), the number of upload parts and thus their corresponding part size will be computed dynamically based on the specified file size, following these rules:
All mutations have exactly one input field called input
with a unique input and return type. This is useful to write mutations with variables, so there is always one single variable per mutation. This makes it easier to use and reuse them.