Prerequisites
- Web console
- AWS CLI
Make sure you are in a group that has at least the
editor role within your tenant; for example, the default editors group. You can check this in the Administration → IAM section of the web console.Object naming requirements
Each Object Storage object has a key — object ID in astring format. This key can contain prefixes — they act similar to directories, organizing objects into groups.
To avoid issues with your objects, follow these requirements:
- Object keys can be up to 1024 bytes long, case sensitive.
- Use UTF-8 alphanumeric characters, slashes (
/) and certain special characters.
How to upload
Uploading a single file
- Web console
- AWS CLI
- s5cmd
-
In the sidebar, go to
Storage → Object Storage.
- Select the bucket where you want to upload a file.
-
Upload a file:
- Click
Add → Object.
- In the window that opens, select the file to upload.
- Click Upload.
- Click
- Check that the Objects tab shows the new object.
Uploading a folder
You can use the web console to create a folder in a bucket and upload files to it. With the AWS CLI, you can upload an entire local folder including its contents.- Web console
- AWS CLI
To create a folder:
- In the sidebar, go to
Storage → Object Storage.
- Select the bucket where you want to create the folder.
- Click
Add → Folder.
- In the Create folder window, enter a name and click Create.
How to download
You can download a single object from an Object Storage bucket with the web console or AWS CLI. The AWS CLI also lets you download all objects with a specified prefix.- Web console
- AWS CLI
- In the sidebar, go to
Storage → Object Storage.
- Select the bucket that contains the object.
- In the row of the object to download, click
→ Download.
Example with the AWS CLI
Assume that you already have an Object Storage bucket namedquickstart-bucket. The example below shows how to upload objects to your bucket and download them using the AWS CLI.
-
Create a local folder from which you’ll upload files to your bucket:
-
Create the files to upload. Run the commands from the code block below:
This creates three text files in your new
lorem-ipsum/folder:lorem.txteuismod.txtlitora.txt
-
Upload all the files from your
lorem-ipsum/folder to your Object Storage bucket with thelorem-ipsumprefix:Output
-
List the objects with the
lorem-ipsumprefix in your bucket:Output
-
Download the
lorem.txtfile from your bucket to the locallorem-ipsum/folder aslorem-download.txt:Output
-
Check if the downloaded file is there:
Output
-
Delete all the files with the
lorem-ipsumprefix from your Object Storage bucket:Output
-
Remove the
lorem-ipsum/folder from your computer: