Skip to content

Metadata and quotas

What Files records about each file, custom metadata, and the limits you set per bucket.

Applies to EngineCloud
View as Markdown
On this page
  1. What is recorded
  2. Per-bucket limits
  3. Project quotas

What is recorded

Each file is a row in sypnia_files.objects: id, bucket_id, name (the path), owner (the user who uploaded it, from the token), size, content_type, checksum (SHA-256), scan_status, metadata (your own JSON), case (the use case that last wrote it), created_at, updated_at, last_accessed_at.

Because it is a table in your project’s database, you can query it with SQL, join it with your own tables and write policies on it.

TypeScript
await files.bucket('receipts').upload('order-1042.pdf', pdf, { metadata: { orderId: 1042 } });

Per-bucket limits

SettingEffect
maxFileSizeuploads larger than this are refused with 413
allowedTypesa list of MIME types or patterns (image/*); the type is checked from the bytes, not only the file name
scanoff, or on to serve files only after a clean malware scan
cacheControlthe Cache-Control header for public files

Project quotas Cloud

A project has a storage quota and a monthly transfer quota from its plan. Near the limit you are notified; over it, uploads are refused with insufficient_storage until you add credits or capacity. Downloads keep working.

  1. What is recorded
  2. Per-bucket limits
  3. Project quotas

    Search pages, sections and terms