---
title: "Storage"
description: "Store, manage, and deliver files with Appwrite Storage. Built-in CDN, regional caching, S3-compatible access, compression, encryption, on-the-fly transforms, file tokens, and secure downloads."
canonical: "https://appwrite.io/products/storage"
---

# File storage with delivery built in

Upload, organize, and serve images, videos, documents, and other assets through Appwrite CDN. Resize, crop, and convert formats on the fly, compress and encrypt at the bucket level, and share with granular permissions.

[Start building](https://appwrite.io/sign-up?redirect=%2F)[View docs](https://appwrite.io/docs/products/storage)

media / hero.png

Preview

/files/hero.png/preview?width\=800&output\=webp&quality\=80

Original

4.2 MB

Output

186 KB

Format

WEBP

promo.mp4

24 MB

Encrypted

Cache hit

fra · 18 ms

120+ edge locations

CDN

On-the-fly delivery

Transforms

Compatible object access

S3

gzip and zstd buckets

Compression

At-rest protection

Encryption

## On-the-fly image transformations

Use the preview endpoint to resize, crop, convert format, set quality, add borders, and rotate from a single upload. Pass gravity=auto and YuNet looks for a face first. If none is confident enough, U²-Net saliency returns a normalized (x, y) crop focus. Fixed gravity values still work.

[Image transforms docs](https://appwrite.io/docs/products/storage/images)

![Wide source photograph with the subject on the left](https://appwrite.io/images/blog/introducing-autogravity/original.avif)x 0.12 · y 0.52Original

YuNet, then U²-Net. File is not cropped.

![Square crop using gravity=center, mostly empty field](https://appwrite.io/images/blog/introducing-autogravity/center-crop.avif)gravity=center

Misses the subject.

![Square crop using gravity=auto, subject kept in view](https://appwrite.io/images/blog/introducing-autogravity/automatic-crop.avif)gravity=autoNew

Keeps the subject.

GET/v1/storage/buckets/photos/files/golden-retriever.jpg/preview?width=400&height=400&gravity=auto&output=webp

width=400height=400gravity=autoquality=85output=webp

## CDN delivery built in

Every storage file and transformed preview is served through Appwrite CDN with 120+ edge locations worldwide. Transformed images are cached in your project region first, so repeat requests skip re-processing and reach users faster.

[CDN docs](https://appwrite.io/docs/products/network/cdn)

lhr8 msiad12 msnrt16 msgru24 mssin19 mssyd21 ms

Region cache

fra

Repeat transforms stay fast

Cache hit

Transform

preview?width=640

Processed once

120+ edge locations

CDN edge

Nearest PoP

Low latency worldwide

## Compression and image format optimization

Lower storage costs, cut bandwidth, and speed up page loads without a separate media pipeline. Enable gzip or zstd per bucket to compress uploads automatically, then serve WebP, AVIF, and other modern formats from the preview endpoint. Keep one original upload and optimize file size every time you deliver it.

[Bucket settings docs](https://appwrite.io/docs/products/storage/buckets)

Bucket compression

gzipzstd

Original

hero.png

842 KB

zstd

webphero.webp278 KB

avifhero.avif214 KB

jpghero.jpg391 KB

67% smallerServe WebP or AVIF without storing duplicate files.

## Granular permissions at bucket and file level

Integrate Storage with Auth users, teams, and roles. Set bucket-wide defaults and per-file rules from the Console Security tab so the right people can read, create, update, or delete files.

[Permissions docs](https://appwrite.io/docs/products/storage/permissions)

avatars

Bucket permissions apply to all files

team:design/readteam:design/createrole:developer/update

team:design

ReadCreateUpdateDelete

File security

Enable per-file permissions on individual uploads.

profile-128.webp

user:paige/readuser:toby/read

File-level rules override bucket defaults for sensitive assets.

## Encryption at rest

Turn on bucket encryption from Settings so new uploads are stored encrypted at rest. If files are exposed, encrypted objects stay unreadable without your project keys.

[Bucket settings docs](https://appwrite.io/docs/products/storage/buckets)

Encryption

Applies to new files in this bucket

contract.pdf1.2 MB

backup.zip4.8 MB

credentials.json12 KB

9f2c 41ab e07d 6c19

c83e 0d5f 7a22 b4e1

1b7a f9c0 34de 82f5

documentsEncrypted

Encrypt new uploads at rest so leaked files stay unreadable.

## File tokens for expiring public links

Share files with token-based preview, view, and download URLs that work without session cookies. Set an expiry date or keep links open-ended for external viewers.

[File tokens docs](https://appwrite.io/docs/products/storage/file-tokens)

report-q4.pdf

Expires

Jan 31, 2027

File tokens

Share without session cookies or bucket permissions.

Public link

Preview URL

…/files/report-q4/preview?token=8f3a…c21d

AccessPreviewViewDownload

Works for external viewers without third-party cookie issues.

## Bucket-based file management at scale

Organize uploads in isolated buckets with upload, download, list, and delete APIs. Browse files in the Console with search, pagination, and bulk operations.

[Upload and download docs](https://appwrite.io/docs/products/storage/upload-download)

marketing-assets

128 files · 2.1 GB

Search files...

Upload

hero-banner.webp842 KB

pricing.pdf1.2 MB

team-photo.jpg3.4 MB

launch-video.mp424 MB

2 selectedDelete selected

storage.listFiles('marketing-assets')

## S3-compatible object access

Connect Appwrite Storage to rclone, Terraform, and custom pipelines with a project-scoped HTTPS endpoint and SigV4-compatible signing. Copy credentials from the Console Connect tab and keep your existing S3 workflows.

[Storage docs](https://appwrite.io/docs/products/storage)

\~/site · zsh

```
$ rclone copy ./assets appwrite:marketing-assets
Transferred: 128 / 128, 100%
Elapsed time: 4.2s

$ aws s3 ls s3://marketing-assets
2026-10-03 842 KB hero-banner.webp
2026-10-03 1.2 MB pricing.pdf
```

S3-compatible access

SigV4

Project-scoped endpoint with SigV4 signing.

Endpointhttps://fra.cloud.appwrite.io/v1/s3

Access key6512a8f0e4c1

Secret key••••••••••••••••

## Image transform wizard and presets

Build transforms visually in the Console, preview results live, and save presets for reuse across your team. Ship optimized images without writing transformation code.

[Image transforms docs](https://appwrite.io/docs/products/storage/images)

Presets6

thumbnail-256

256 × 256 · webp

og-card

1200 × 630 · jpg

hero-banner

640 × 360 · webp

avatar-square

128 × 128 · avif

DesignCodeEditCompare

100%

640 × 360

842 KB278 KB33% of originalCopy URL

Size & crop

Width (px)640

Gravitycenter

Quality & format

Style & effects

## Tools built for developers and agents

API-first by design. Use the Console, Realtime, SDKs, CLI, Terraform, MCP, and agent skills on the same project.

Developer and agent experience

A typical integration in TypeScript.

TypeScript

```
import { Client, Storage, ID } from 'appwrite';
const client = new Client()  .setEndpoint('https://<REGION>.cloud.appwrite.io/v1')  .setProject('<PROJECT_ID>');
const storage = new Storage(client);
const file = await storage.createFile({  bucketId: 'avatars',  fileId: ID.unique(),  file: input.files[0],});
console.log(file.$id);
```

[Everything is an APIREST, GraphQL, and SDKs for every service. Automate and integrate without console-only workflows.](https://appwrite.io/docs/apis/rest)[ConsoleManage every service in your project from a unified Console. Optimized keyboard access and a Command Center keep you moving fast.⌘KCommand Center](https://appwrite.io/docs/tooling/command-center)[RealtimeSubscribe to live events and react to changes as they happen.buckets.\*.files.\*buckets.\*.files.\*.create](https://appwrite.io/docs/apis/realtime)[MCPConnect AI agents to your Appwrite project, APIs, and docs through one remote MCP server.appwrite https://mcp.appwrite.io](https://appwrite.io/docs/tooling/ai/mcp-servers)[TerraformManage Appwrite infrastructure as code with the official provider.terraform plan terraform apply](https://appwrite.io/docs/tooling/terraform/resources/storage)[Agent skillsGive AI agents SDK-accurate knowledge of Appwrite services and APIs.npx skills add appwrite/skills](https://appwrite.io/docs/tooling/ai/skills)[SDKsClient and server SDKs for the platforms your team already uses. 15 official SDKs available across client and server runtimes.](https://appwrite.io/docs/sdks)[CLIDeploy resources, manage projects, and generate typed SDKs from your terminal.appwrite login appwrite deploy](https://appwrite.io/docs/tooling/command-line/installation)

## FAQ

### 

Storage is for binary files like images, videos, and PDFs. Databases store structured rows and fields. Most apps use both together: Storage for assets and Databases for metadata and relationships.

[Storage overview](https://appwrite.io/docs/products/storage)[Databases overview](https://appwrite.io/docs/products/databases)

### 

Yes. Request transformations through the preview endpoint to resize, crop, convert format, and adjust quality on the fly. Keep one original upload and let Appwrite generate variants on demand.

[Image transformations](https://appwrite.io/docs/products/storage/images)

### 

It asks AutoGravity to pick a crop focus. YuNet runs first and uses a face bounding box when confidence is high enough. Otherwise U²-Net saliency finds the strongest connected region and returns its weighted centroid as a normalized (x, y) point. The preview endpoint crops around that point. Fixed gravity values still work as before.

[Image transformations](https://appwrite.io/docs/products/storage/images)

### 

Yes. Storage files and transformed previews are served through Appwrite CDN with 120+ edge locations. Transformed images are cached in your project region, so repeat requests skip re-processing before reaching the edge.

[CDN overview](https://appwrite.io/docs/products/network/cdn)[Caching](https://appwrite.io/docs/products/network/caching)

### 

Yes. Enable gzip or zstd compression per bucket from Settings. Compression applies to new uploads and helps reduce storage and bandwidth costs. Files larger than 20 MB skip compression even when enabled.

[Bucket compression](https://appwrite.io/docs/products/storage/buckets)

### 

Yes. Turn on encryption per bucket from Settings so new files are stored encrypted at rest. If files are leaked, encrypted objects cannot be read without your keys.

[Bucket encryption](https://appwrite.io/docs/products/storage/buckets)

### 

Yes. Buckets and files have no permissions by default, so access is denied until you grant read, create, update, or delete to users, teams, or roles. Enable file security on a bucket to set per-file permissions on top of bucket defaults.

[Storage permissions](https://appwrite.io/docs/products/storage/permissions)

### 

File tokens are secrets attached to a file that authorize preview, view, or download without session cookies. Create tokens from the Console or Server SDK, set an optional expiry, and share the URL with anyone. This avoids third-party cookie issues in embedded or cross-domain apps.

[File tokens](https://appwrite.io/docs/products/storage/file-tokens)

### 

Yes. Storage supports chunked uploads for large files through the SDKs and Console. Configure maximum file size per bucket and use resumable uploads when transferring big assets.

[Upload and download](https://appwrite.io/docs/products/storage/upload-download)

### 

Yes. Appwrite Storage exposes a project-scoped HTTPS endpoint with SigV4-compatible signing. Copy the endpoint, access key, and secret from the Connect tab in your project to attach buckets to rclone, Terraform, or other S3 tooling without rebuilding upload pipelines.

[Storage overview](https://appwrite.io/docs/products/storage)

## Start building with Storage

Create a bucket, upload your first file, and generate a preview URL in minutes.

[Start building](https://appwrite.io/sign-up?redirect=%2F)[View pricing](https://appwrite.io/pricing)

## Explore Appwrite

Modular backend services that share the same project, permissions model, and console.

[AuthEmail, OAuth, SMS, MFA, teams, and sessions.](https://appwrite.io/products/auth)

[DatabasesManaged PostgreSQL, TablesDB, DocumentsDB, VectorsDB, MySQL.](https://appwrite.io/products/databases)

[PostgreSQLManaged PostgreSQL with pooling, replicas, and PITR.](https://appwrite.io/products/postgres)

[StorageUpload, transform, and deliver files on CDN.](https://appwrite.io/products/storage)

[FunctionsAPIs, cron jobs, and event handlers at scale.](https://appwrite.io/products/functions)

[MessagingEmail, SMS, and push with topics and targets.](https://appwrite.io/products/messaging)

[RealtimeLive events, channels, and presence.](https://appwrite.io/products/realtime)

[SitesStatic, SSR, and CSR deploys from Git.](https://appwrite.io/products/sites)

[DomainsSearch, buy, transfer, and manage domains.](https://appwrite.io/domains)

[FirewallProject rules to deny, rate limit, and redirect traffic.](https://appwrite.io/products/firewall)

### 

### 

### 

### 

### 

### 

[](https://github.com/appwrite)[](https://x.com/appwrite)[](https://www.linkedin.com/company/appwrite/)[](https://www.instagram.com/appwrite.io/)[](https://appwrite.io/discord)[](https://apwr.dev/dailydev)

[SOC 2 Type II Certified](https://appwrite.io/docs/advanced/security)

© 2026 Appwrite
