Files: what a decision needs to know

Ouverte
#85 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
25/100
Type d'issue
Fonctionnalité
Clarté
Clairement spécifiée
Activité
Active
Stack technique
typescript
Domaine
backend, cloud, databases

Piste de recherche

Start by rereading the platform documentation and standards cited in the issue, then record verified platform facts in the Cloudflare ledger. Draft a decision record answering the listed ownership, storage, upload, serving, sharing, mail, quota, and first-slice questions, and check its status with the project lead. Done means the record is accepted or changed and the roadmap places this module relative to the others.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

decision enhancement needs lead

One of the modules the project lead named for the suite (#57): a person's files with folders, sharing inside the instance, public links, and mail attachments saved to it and attached from it. The feature scope lists it in phase C. Nothing is built, and nothing is pulled forward by this issue: it holds the data a decision record will need.

What was read (2026-11-19, from the platform's current documentation and the standards)

The pages were read through a tool that returns extracts. Every figure is checked again at its source, and goes into the Cloudflare ledger, before it enters a record.

The store (R2)

  • An object may be 5 TiB; one upload 5 GiB; a multipart upload has up to 10,000 parts of at least 5 MiB, all but the last the same size; a key is at most 1,024 bytes. Reads, lists and deletes are strongly consistent.
  • The Worker's binding can read, write, delete, list and run a multipart upload. It cannot copy or rename, and it cannot make a presigned address: that needs S3 credentials.
  • Egress is free; storage and operations are what an instance's owner pays. There is no object versioning and no object lock.

Uploads through the Worker

  • A request body is limited by the zone's plan (100 MB on the two smallest), so a large file goes up in parts, each under that limit.
  • The documented way to resume is to send a failed part again.

Serving a file from the app's own site

  • What stops an uploaded file from running in the app's origin: a download disposition, no type sniffing, a fixed safe type, and a sandboxing content policy; or a separate hostname for people's content.

Previews

  • The platform can transform an image of up to 20 MB from the store, with a monthly free allowance and a price after it. Documents have no thumbnail service; a headless browser can render pages at a price.

The tree

  • Since the store cannot rename, a folder tree kept in a database with opaque, unchanging object keys makes a rename or a move one row. A Durable Object's database holds 10 GB, and one row 8 MB.

Sharing

  • A link's token: at least 128 bits from a cryptographic generator, an expiry, and a way to take it back.

Not available or not verified

  • No scanning of uploaded content can be called from a Worker today.
  • Whether the methods a desktop needs to mount a folder (WebDAV) reach a deployed Worker is not verified; only second-hand reports say so.
  • Presigned multipart uploads, a password or download-only link as a standard, and the limits of image transformation beyond size were not read.

A decision record must answer

  • Whose a file is (a person's, a shared space's), and what the membership rules of mail carry over.
  • Where the tree lives and what an object's key is; what deleting means and when the bytes go.
  • How a large file goes up, and whether an instance ever holds S3 credentials.
  • How a file is served so that it can never run in the app's origin; whether people's content gets its own hostname.
  • What a public link is, how long it lives, and who can take it back.
  • How mail meets it: an attachment saved to files, a file attached to a message, and what a link in a message means for a reader outside the instance.
  • Quotas, since the instance's owner pays for storage.
  • What is left out of the first slice on purpose: previews, mounting from a desktop, scanning.

Done when

  • The facts above are re-read at their sources and recorded in the ledger where they are platform facts.
  • A decision record is proposed and accepted or changed by the project lead.
  • The roadmap says where this module stands relative to the others.
Langage dominant
TypeScript
Étoiles
1
Forks
1
Merge moyen
9 h 3 min
PR mergées (30 j)
136

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de cloudhal-dev/podbay

Toutes les issues de cloudhal-dev/podbay

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.