- 05 Apr 2023
- Print
- PDF
Objects, Folders, and Files
- Updated on 05 Apr 2023
- Print
- PDF
Storing Objects in a Bucket
You can store objects in a bucket in Wasabi. An object can be any type of file—text, photo, video, etc. See Step 2 in Getting Started: Working with a Bucket.
Folders and Files
For information about folders and files, see Step 2 in Getting Started: Working with Folders and Files.
Public Access
Public use of a folder or file is not allowed, by default, for trial accounts. Contact Wasabi Support at support@wasabi.com for assistance.
You can set public access in two ways:
- Using the Wasabi Settings feature
- Defining a policy, as described below
The following is a sample policy that allows for public access of a folder. Change the bucket and folder name in the Resource section (arn:aws:s3:::bucket-public/myfolder, shown in the example below) to reflect your resource name.
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowPublicRead", "Effect": "Allow", "Principal": {
"AWS": ""
},
"Action": [ "s3:GetObject", "s3:ListBucket"
],
"Resource": "arn:aws:s3:::bucket-public/myfolder/*"
}]
}
arn:aws:service:account-id:resource-id
arn:aws:service:account-id:resource-type/resource-id
arn:aws:service:account-id:resource-type:resource-id
After defining the policy, you can access files directly via either of these URLs:
- YOURBUCKETNAME.s3.wasabisys.com/FILENAME<FolderName>
- s3.wasabisys.com/YOURBUCKET/<FolderName>/FILENAME