Uploading Files and Folders by Using Drag and Drop in Amazon S3 Bucket
If you are using the Chrome or Firefox browsers, you can choose the folders and files to upload, and then drag and drop them into the destination bucket. Dragging and dropping is the only way that you can upload folders.
To upload folders and files to an S3 bucket by using drag and drop
- Sign in to the AWS Management Console and open the Amazon S3 console athttps://console.aws.amazon.com/s3/.
- In the Bucket name list, choose the name of the bucket that you want to upload your folders or files to.
- In a window other than the console window, select the files and folders that you want to upload. Then drag and drop your selections into the console window that lists the objects in the destination bucket.
The files you chose are listed in the Upload dialog box.
- In the Upload dialog box, do one of the following:
- Drag and drop more files and folders to the console window that displays theUpload dialog box. To add more files, you can also choose Add more files. This option works only for files, not folders.
- To immediately upload the listed files and folders without granting or removing permissions for specific users or setting public permissions for all of the files that you’re uploading, choose Upload. For information about object access permissions, see How Do I Set Permissions on an Object?.
- To set permissions or properties for the files that you are uploading, chooseNext.
- On the Set Permissions page, under Manage users you can change the permissions for the AWS account owner. The owner refers to the AWS account root user, and not an AWS Identity and Access Management (IAM) user. For more information about the root user, see The AWS Account Root User.Choose Add account to grant access to another AWS account. For more information about granting permissions to another AWS account.Under Manage public permissions you can grant read access to your objects to the general public (everyone in the world), for all of the files that you’re uploading. Granting public read access is applicable to a small subset of use cases such as when buckets are used for websites. We recommend that you do not change the default setting of Do not grant public read access to this object(s). You can always make changes to object permissions after you upload the object. For information about object access permissions.
When you’re done configuring permissions, choose Next.
- On the Set Properties page, choose the storage class and encryption method to use for the files that you are uploading. You can also add or modify metadata.
- Choose a storage class for the files you’re uploading. For more information about storage classes, see Storage Classes in the Amazon Simple Storage Service Developer Guide.
- Choose the type of encryption for the files that you’re uploading. If you don’t want to encrypt them, choose None.
- To encrypt the uploaded files using keys that are managed by Amazon S3, choose Amazon S3 master-key. For more information, see Protecting Data with Amazon S3-Managed Encryption Keys Classes in the Amazon Simple Storage Service Developer Guide.
- To encrypt the uploaded files using the AWS Key Management Service (AWS KMS), choose AWS KMS master-key. Then choose a master key from the list of AWS KMS master keys.
To encrypt objects in a bucket, you can use only keys that are available in the same AWS Region as the bucket.
You can give an external account the ability to use an object that is protected by an AWS KMS key. To do this, select Custom KMS ARN from the list and enter the Amazon Resource Name (ARN) for the external account. Administrators of an external account that have usage permissions to an object protected by your AWS KMS key can further restrict access by creating a resource-level IAM policy.
For more information about creating an AWS KMS key, see Creating Keys in the AWS Key Management Service Developer Guide. For more information about protecting data with AWS KMS, see Protecting Data with AWS KMS–Managed Key in the Amazon Simple Storage Service Developer Guide.
- Metadata for Amazon S3 objects is represented by a name-value (key-value) pair. There are two kinds of metadata: system-defined metadata and user-defined metadata.If you want to add Amazon S3 system-defined metadata to all of the objects you are uploading, for Header, select a header. You can select common HTTP headers, such as Content-Type and Content-Disposition. Type a value for the header, and then choose Save. For a list of system-defined metadata and information about whether you can add the value, see System-Defined Metadata in the Amazon Simple Storage Service Developer Guide.
- Any metadata starting with prefix
x-amz-meta-is treated as user-defined metadata. User-defined metadata is stored with the object, and is returned when you download the object.To add user-defined metadata to all of the objects that you are uploading, type
x-amz-meta-plus a custom metadata name in the Header field. Type a value for the header, and then choose Save. Both the keys and their values must conform to US-ASCII standards. User-defined metadata can be as large as 2 KB. For more information about user-defined metadata, see User-Defined Metadatain the Amazon Simple Storage Service Developer Guide.
- Object tagging gives you a way to categorize storage. Each tag is a key-value pair. Key and tag values are case sensitive. You can have up to 10 tags per object.To add tags to all of the objects that you are uploading, type a tag name in theKey field. Type a value for the tag, and then choose Save. A tag key can be up to 128 Unicode characters in length and tag values can be up to 255 Unicode characters in length. For more information about object tags, see Object Tagging in the Amazon Simple Storage Service Developer Guide.
- Choose Next.
- On the Upload review page, verify that your settings are correct, and then choose Upload. To make changes, choose Previous.
- To see the progress of the upload, choose In progress at the bottom of the browser window.
To see a history of your uploads and other operations, choose Success.
For more details::