FormFileUploaderFieldConfigArgs

data class FormFileUploaderFieldConfigArgs(val acceptedFileTypes: Output<List<String>>, val accessLevel: Output<FormStorageAccessLevel>, val isResumable: Output<Boolean>? = null, val maxFileCount: Output<Double>? = null, val maxSize: Output<Double>? = null, val showThumbnails: Output<Boolean>? = null) : ConvertibleToJava<FormFileUploaderFieldConfigArgs>

Constructors

Link copied to clipboard
constructor(acceptedFileTypes: Output<List<String>>, accessLevel: Output<FormStorageAccessLevel>, isResumable: Output<Boolean>? = null, maxFileCount: Output<Double>? = null, maxSize: Output<Double>? = null, showThumbnails: Output<Boolean>? = null)

Properties

Link copied to clipboard

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.

Link copied to clipboard

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 .

Link copied to clipboard
val isResumable: Output<Boolean>? = null

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.

Link copied to clipboard
val maxFileCount: Output<Double>? = null

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

Link copied to clipboard
val maxSize: Output<Double>? = null

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

Link copied to clipboard
val showThumbnails: Output<Boolean>? = null

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.

Functions

Link copied to clipboard
open override fun toJava(): FormFileUploaderFieldConfigArgs