Buckets and paths
How files are organized: buckets, paths that look like folders, public and private buckets.
On this page
A bucket holds files. A file is identified by its bucket and its path, such as receipts/2026/11/order-1042.pdf. Paths with / look like folders in the console and the SDK, but there are no folder objects: a folder exists while a file is in it.
Public and private
| Public bucket | Private bucket (default) | |
|---|---|---|
| Download | anyone with the address, through the CDN | only who your policies allow: with a token or a signed URL |
| Upload, replace, delete | always by your policies | always by your policies |
| Cached at the edge | yes | per signed URL, never shared |
Making a bucket public is a setting you change at any time; it does not move files.
Names
Bucket names: 3 to 63 lowercase letters, digits and dashes. Paths: up to 1,024 bytes of UTF-8; .., a leading / and control characters are refused.
Operations
const avatars = files.bucket('avatars');
await avatars.list('user-42/', { limit: 100, sortBy: 'created_at' });
await avatars.move('user-42/old.jpg', 'user-42/photo.jpg');
await avatars.copy('templates/menu.pdf', 'menus/2026-11.pdf');
await avatars.remove(['user-42/photo.jpg']);Every operation goes through the same policies as an upload.