Skip to main content

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 miscellaneous

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

DEPRECATED

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

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

Returned By

fileUpload mutation