StagedUploadTargetGenerateInput input object

Specifies the fields required to generate the URL and parameters needed to upload an asset to Shopify.


Input fields

  • fileSize ([UnsignedInt64](https://shopify.dev/docs/admin-api/graphql/reference/scalar#unsignedint64-2021-01))
    The size of the file to upload, in bytes.
  • filename ([String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)) REQUIRED
    The filename of the asset being uploaded.
  • httpMethod ([StagedUploadHttpMethodType](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/stageduploadhttpmethodtype))
    The HTTP method to be used by the staged upload.
  • mimeType ([String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)) REQUIRED
    The MIME type of the asset being uploaded.
  • resource ([StagedUploadTargetGenerateUploadResource!](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/stageduploadtargetgenerateuploadresource)) REQUIRED
    The resource type being uploaded.