This is the new AWS CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
AWS::AmplifyUIBuilder::Form FileUploaderFieldConfig
Describes the configuration for the file uploader field.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "AcceptedFileTypes" :[ String, ... ], "AccessLevel" :String, "IsResumable" :Boolean, "MaxFileCount" :Number, "MaxSize" :Number, "ShowThumbnails" :Boolean}
YAML
AcceptedFileTypes:- StringAccessLevel:StringIsResumable:BooleanMaxFileCount:NumberMaxSize:NumberShowThumbnails:Boolean
Properties
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.
Required: Yes
Type: Array of String
Update requires: No interruption
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, orpublic. For detailed information about the permissions associated with each access level, see File access levelsin the Amplify documentation. Required: Yes
Type: String
Allowed values:
public | protected | privateUpdate requires: No interruption
IsResumable-
Allows the file upload operation to be paused and resumed. The default value is
false.When
isResumableis set totrue, 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.Required: No
Type: Boolean
Update requires: No interruption
MaxFileCount-
Specifies the maximum number of files that can be selected to upload. The default value is an unlimited number of files.
Required: No
Type: Number
Update requires: No interruption
MaxSize-
The maximum file size in bytes that the file uploader will accept. The default value is an unlimited file size.
Required: No
Type: Number
Update requires: No interruption
ShowThumbnails-
Specifies whether to display or hide the image preview after selecting a file for upload. The default value is
trueto display the image preview.Required: No
Type: Boolean
Update requires: No interruption