Design system / Organisms
Organism / Intake and review
SubmissionFileUploader
SubmissionFileUploader manages controlled file entries with previews, descriptions, ordering, removal and per-file upload feedback.
Intent and composition
The caller owns files through onFilesChange. The component validates selections and performs its current upload requests inline, updating each entry's status. These requests are not yet extracted into an ADR-0032 behavior hook. Product operations must enforce upload access independently.
Coordinated concerns: Multiple files, previews, descriptions, ordering, removal and per-file upload outcomes.
The parent owns file entries through files/onFilesChange; drag state is local. Server operations still enforce upload access.
Real component specimen
Actual uploader in its supported disabled empty state. No file selection or upload request is possible.
Real component, fictional data. Product operations are not enabled.
Supported inputs and ownership
| Input | Responsibility |
|---|---|
| files / onFilesChange | Controlled upload entries and updater callback. |
| tenantCode | Submission upload context. |
| maxFiles / disabled | Collection limit and supported disabled state. |
This is an integration summary, not a replacement for the implementation's complete prop types. A disabled control or hidden destination does not enforce permission.
Using it in a page
Integrate the section through its supported props and context requirements. Routes supply permitted data; instances bind product copy and behavior; templates arrange slots. Keep feature hooks and operations with their feature owner. Generic layouts must not load business data or enforce product policy.
Related page assemblies: Create or edit a submission.
Implementation
Repository path: src/components/submissions/submission-file-uploader.tsx