选择您的 Cookie 首选项

我们使用必要 Cookie 和类似工具提供我们的网站和服务。我们使用性能 Cookie 收集匿名统计数据,以便我们可以了解客户如何使用我们的网站并进行改进。必要 Cookie 无法停用,但您可以单击“自定义”或“拒绝”来拒绝性能 Cookie。

如果您同意,AWS 和经批准的第三方还将使用 Cookie 提供有用的网站功能、记住您的首选项并显示相关内容,包括相关广告。要接受或拒绝所有非必要 Cookie,请单击“接受”或“拒绝”。要做出更详细的选择,请单击“自定义”。

FileUploaderFieldConfig

聚焦模式
FileUploaderFieldConfig - AmplifyUIBuilder
此页面尚未翻译为您的语言。 请求翻译

Describes the configuration for the file uploader field.

Contents

acceptedFileTypes

The file types that are allowed to be uploaded by the file uploader. Provide this information in an array of strings specifying the valid file extensions.

Type: Array of strings

Required: Yes

accessLevel

The access level to assign to the uploaded files in the Amazon S3 bucket where they are stored. The valid values for this property are private, protected, or public. For detailed information about the permissions associated with each access level, see File access levels in the Amplify documentation.

Type: String

Valid Values: public | protected | private

Required: Yes

isResumable

Allows the file upload operation to be paused and resumed. The default value is false.

When isResumable is set to true, the file uploader uses a multipart upload to break the files into chunks before upload. The progress of the upload isn't continuous, because the file uploader uploads a chunk at a time.

Type: Boolean

Required: No

maxFileCount

Specifies the maximum number of files that can be selected to upload. The default value is an unlimited number of files.

Type: Integer

Required: No

maxSize

The maximum file size in bytes that the file uploader will accept. The default value is an unlimited file size.

Type: Integer

Required: No

showThumbnails

Specifies whether to display or hide the image preview after selecting a file for upload. The default value is true to display the image preview.

Type: Boolean

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

本页内容

隐私网站条款Cookie 首选项
© 2025, Amazon Web Services, Inc. 或其附属公司。保留所有权利。