uploadMedia Query
Returns a pre-signed URL for uploading the specified media file.
Input fields
Argument | Type | Description |
---|---|---|
objectId | ID! | The ID of the object with which to associate the media file. |
fileName | String! | The name of the media file. |
mediaType | MediaType! | The relationship of the media file to the object. |
Return fields (UploadMedia!)
error (String)
Contains any error message that occurred as part of generating the pre-signed URL.
objectUrl (String)
The URL where the file is located after being uploaded.
uploadUrl (String)
The pre-signed URL to which the file should be uploaded.