S3
AWS S3 (and any S3-compatible bucket). Uses the standard AWS credential chain - environment, IAM role, shared profile.
Installation
@aws-sdk/client-s3, @aws-sdk/s3-presigned-post, and @aws-sdk/s3-request-presigner are optional peer dependencies of files-sdk - install alongside the SDK so the adapter's imports resolve at runtime.
AWS S3 (and any S3-compatible bucket). Uses the standard AWS credential chain - environment, IAM role, shared profile.
import { Files } from "files-sdk";import { s3 } from "files-sdk/s3";const files = new Files({ adapter: s3({ bucket: "uploads", region: "us-east-1", // credentials auto-loaded from the AWS chain // (env vars, IAM role, shared profile, ...) }),});