Documentation
Use any S3 client. Set the endpoint, region, access key and secret key.
Connect
Endpoint https://storage.eazysaas.com, region us-east-1, path-style addressing, Signature Version 4.
import { S3Client, PutObjectCommand } from "@aws-sdk/client-s3";
const s3 = new S3Client({
endpoint: "https://storage.eazysaas.com",
region: "us-east-1",
forcePathStyle: true,
credentials: { accessKeyId: "YOUR_ACCESS_KEY", secretAccessKey: process.env.SECRET_KEY },
});
await s3.send(new PutObjectCommand({ Bucket: "my-bucket", Key: "hello.txt", Body: "Hello" }));Supported operations
| Area | Operations |
|---|---|
| Buckets | List, create, delete, head, location |
| Objects | Get, put, head, copy, delete, delete many, list (v1 and v2), list versions, range reads |
| Multipart | Create, upload part, copy part, list parts, complete, abort |
| Tags | Get, put and delete object tags |
| Not available | Public ACLs, bucket policies, customer-provided encryption keys |
Share a file
Objects are private. Create a presigned URL with your SDK. It can last up to 7 days.
Limits
A single upload can be up to 5 GB. Use multipart for larger files. When your quota is full, uploads return the error QuotaExceeded. When you send too many requests, you get SlowDown: wait and retry.
Object names
Names can be up to 1,024 bytes. Names that start with a slash, or contain a backslash or a "." or ".." path part, are refused.