public static interface FileUploaderFieldConfig.Builder extends SdkPojo, CopyableBuilder<FileUploaderFieldConfig.Builder,FileUploaderFieldConfig>
| Modifier and Type | Method and Description |
|---|---|
FileUploaderFieldConfig.Builder |
acceptedFileTypes(Collection<String> acceptedFileTypes)
The file types that are allowed to be uploaded by the file uploader.
|
FileUploaderFieldConfig.Builder |
acceptedFileTypes(String... acceptedFileTypes)
The file types that are allowed to be uploaded by the file uploader.
|
FileUploaderFieldConfig.Builder |
accessLevel(StorageAccessLevel accessLevel)
The access level to assign to the uploaded files in the Amazon S3 bucket where they are stored.
|
FileUploaderFieldConfig.Builder |
accessLevel(String accessLevel)
The access level to assign to the uploaded files in the Amazon S3 bucket where they are stored.
|
FileUploaderFieldConfig.Builder |
isResumable(Boolean isResumable)
Allows the file upload operation to be paused and resumed.
|
FileUploaderFieldConfig.Builder |
maxFileCount(Integer maxFileCount)
Specifies the maximum number of files that can be selected to upload.
|
FileUploaderFieldConfig.Builder |
maxSize(Integer maxSize)
The maximum file size in bytes that the file uploader will accept.
|
FileUploaderFieldConfig.Builder |
showThumbnails(Boolean showThumbnails)
Specifies whether to display or hide the image preview after selecting a file for upload.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildFileUploaderFieldConfig.Builder accessLevel(String 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.
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.StorageAccessLevel,
StorageAccessLevelFileUploaderFieldConfig.Builder accessLevel(StorageAccessLevel 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.
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.StorageAccessLevel,
StorageAccessLevelFileUploaderFieldConfig.Builder acceptedFileTypes(Collection<String> 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.
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.FileUploaderFieldConfig.Builder acceptedFileTypes(String... 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.
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.FileUploaderFieldConfig.Builder showThumbnails(Boolean 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.
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.FileUploaderFieldConfig.Builder isResumable(Boolean 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.
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.
FileUploaderFieldConfig.Builder maxFileCount(Integer maxFileCount)
Specifies the maximum number of files that can be selected to upload. The default value is an unlimited number of files.
maxFileCount - Specifies the maximum number of files that can be selected to upload. The default value is an
unlimited number of files.FileUploaderFieldConfig.Builder maxSize(Integer maxSize)
The maximum file size in bytes that the file uploader will accept. The default value is an unlimited file size.
maxSize - The maximum file size in bytes that the file uploader will accept. The default value is an unlimited
file size.Copyright © 2023. All rights reserved.