Upload a file to S3
On This Page
Uploading a File to Amazon S3
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/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
- 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).
Click the Upload button.
Click Add Files:
A file picker will appear.
- 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.
Check the file and click on Remove:
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.
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: