Uploading a File to Amazon S3
Lab Steps
Introduction
When you upload a folder from your local system or another machine, Amazon S3 uploads all the files and subfolders from the specified local folder to your bucket. It then assigns a key value that is a combination of the uploaded file name and the folder name. In this lab step, you will upload a file to your bucket. The process is similar to uploading a single file, multiple files, or a folder with files in it.
In order to complete this lab step, you have to upload the cloudacademy-logo.png file from your local file storage into an S3 folder you created earlier.
Download the Cloud Academy logo from the following location: https://s3-us-west-2.amazonaws.com/clouda-labs-assets/scripts/s3/cloudacademy-logo.png (If the image is not downloaded for you, simply right-click the image and select Save image as to download it to your local file system.)
Â
Instructions
1. Click on the cloudfolder folder. You are placed within the empty folder in your S3 bucket:
Note: Click the folder name itself, not the checkbox for the folder name. If you select the folder checkbox then upload a file, it will be placed above the folder (not inside it).
Â
2. Click the Upload button.
Â
3. Click Add Files:
A file picker will appear.
Â
4. Browse to and select the local copy of cloudacademy-logo.png file that you downloaded earlier:
The logo is added to the list of files that are ready to upload. You have several options at this point:
- Add more files
- Upload
However, there is another method that some users prefer to add files for upload.
Â
4. Check the file and click on Remove:
Â
5. This time, rather than browsing to a file, drag and drop the logo file onto the wizard. The wizard adds it to the list of files to upload.
Â
6. Scroll to the bottom of the page and click Upload to upload the file:
You will see a blue notification that the file is uploading and then a green notification that the upload has been completed successfully.
The file is placed in the folder in your bucket:
Â
Summary
In this lab step, you learned two ways to upload files to Amazon S3.Â
Check if a file has been uploaded to the Amazon S3 bucket