上传及生成参数-StagedUploadTargetGenerateInput 输入对象

指定生成URL所需的字段以及将资产上传到Shopify所需的参数。


输入栏

  • fileSize[UnsignedInt64](https://shopify.dev/docs/admin-api/graphql/reference/scalar#unsignedint64-2021-01)
    要上传的文件大小,以字节为单位。
  • filename[String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)必需的
    要上传的资产的文件名。
  • httpMethod[StagedUploadHttpMethodType](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/stageduploadhttpmethodtype)
    分阶段上传将使用的HTTP方法。
  • mimeType[String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)必需的
    上载资产的MIME类型。
  • resource[StagedUploadTargetGenerateUploadResource!](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/stageduploadtargetgenerateuploadresource)必需的
    正在上传的资源类型。