Skip to main content
Version: 3.x

FileUpload

Upload a file. This mutation must be sent as a multipart request. More detailed specs of the upload format can be found here: https://github.com/jaydenseric/graphql-multipart-request-spec

Requires one of the following permissions: AUTHENTICATED_APPAUTHENTICATED_STAFF_USER
type FileUpload {
uploadedFile: File
uploadErrors: [UploadError!]! @deprecated
errors: [UploadError!]!
}

Fields

FileUpload.uploadedFile ● File object

FileUpload.uploadErrors ● [UploadError!]! deprecated non-null object

DEPRECATED

This field will be removed in Saleor 4.0. Use errors field instead.

FileUpload.errors ● [UploadError!]! non-null object

Returned by

fileUpload mutation


Was this page helpful?