Skip to main content

BatchUploadRequest

Generates a pre-signed URL for uploading a batch of files to S3.

type BatchUploadRequest {
entityId: ID
entityType: FileEntityEnum
expirationTime: Int
fileName: String
id: ID!
presignedPostFields: JSON
presignedUrl: String
usage: FileUsageEnum
}

Fields​

BatchUploadRequest.entityId ● ID scalar common​

Entity id for the upload target

BatchUploadRequest.entityType ● FileEntityEnum enum common​

Entity type slug for the upload target

BatchUploadRequest.expirationTime ● Int scalar common​

Expiration time for the pre-signed URL in seconds

BatchUploadRequest.fileName ● String scalar common​

Original ZIP file name

BatchUploadRequest.id ● ID! non-null scalar common​

Batch upload request id

BatchUploadRequest.presignedPostFields ● JSON scalar common​

Hidden form fields for the pre-signed URL. This should be used to submit a multipart/form-data request to the URL. Append a part named file with the file body.

BatchUploadRequest.presignedUrl ● String scalar common​

Pre-signed URL for uploading the file to S3

BatchUploadRequest.usage ● FileUsageEnum enum common​

Upload usage

Returned By​

batchPresignedUrl mutation