---
title: "GenericFile"
description: "通用文件，图片和视频文件类型不支持。"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/objects/generic-file'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/objects/generic-file.md'
---
# GenericFile

通用文件，图片和视频文件类型不支持。

- **API Version:** v20270301
- **API Type:** Storefront
- **API Protocol:** GraphQL
- **Operation Type:** Object

## Fields

* `alt`

  [String](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/string.md)

  文件的替代文本描述，通常是具有文件特征或内容的单词或短语。

* `mimeType`

  [String](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/string.md)

  文件的 MIME 类型。

* `originalFileSize`

  [Int](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/int.md)

  文件的大小（以字节为单位）。

* `url`

  [String](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/string.md)

  文件的链接，以 URL 形式展示。

