Skip to content

Buckets and paths

How files are organized: buckets, paths that look like folders, public and private buckets.

Applies to EngineCloud
View as Markdown
On this page
  1. Public and private
  2. Names
  3. Operations

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 bucketPrivate bucket (default)
Downloadanyone with the address, through the CDNonly who your policies allow: with a token or a signed URL
Upload, replace, deletealways by your policiesalways by your policies
Cached at the edgeyesper 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

TypeScript
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.

  1. Public and private
  2. Names
  3. Operations

    Search pages, sections and terms