Uploading an object
You can create folders inside buckets and upload objects there. Keep in mind that in the SDK and HTTP API, an object key is the entire path to the object from the bucket root. For more information, see Objects.
Note
You cannot upload objects greater than 5 GB in size via the management console (see Quotas and limits in Object Storage). Also, when uploading via the console, you can't set content-type
or other headers. To upload large objects or specify object headers, use other tools.
In the management console, you can work with Object Storage buckets like a hierarchical file system.
To upload an object:
- In the management console
, select the folder to upload an object to. - Select Object Storage.
- Click the name of the bucket you need.
- If you want to upload the object to a particular folder, go to that folder by clicking on its name. If you want to create a new folder, click Create folder.
- Once you navigate to the appropriate folder, click Upload.
- In the window that opens, select the required files and click Open.
- Click Upload.
- Refresh the page.
In the management console, information about the number of objects in a bucket and the used space is updated with a few minutes' delay.
-
If you do not have the AWS CLI yet, install and configure it.
-
To upload a single object, run the command:
aws --endpoint-url=https://storage.ai.nebius.cloud/ \ s3 cp <path_to_local_file>/ s3://<bucket_name>/<object_key>
Where:
<path_to_local_file>
: Path to the file to be uploaded to the bucket.<bucket_name>
: Your bucket's name.<object_key>
: Key to store the object in the bucket with.
To load all objects from the local directory, use the following command:
aws --endpoint-url=https://storage.ai.nebius.cloud/ \ s3 cp --recursive <path_to_local_directory>/ s3://<bucket_name>/<prefix>/
Where:
<path_to_local_directory>
: Path to the folder from which you need to copy files to the bucket.<bucket_name>
: Your bucket's name.<prefix>
: ID of a folder in storage, described in Directory.
The aws s3 cp
command is high-level, its functionality is limited. For more information, see the AWS CLI reference