# Tasks Work in order. Finish a task's check before starting the next. 1. **Set up.** Add the tables in `design.md` and a local stand-in for storage that tests can use. If there is no app yet, build the smallest one: a signed-in user. Check: migrations run from empty and a test stores and reads back one object. 2. **Types and names (R4).** Two pure functions: one from the first bytes to a type, one that cleans a name. Check: tests cover every row of both tables in `design.md`. 3. **Start an upload (R1).** Use the `max_file_mb` and `allowed_types` inputs. Check: the R1 acceptance tests pass. 4. **Finish and check (R2).** Check: the R2 acceptance tests pass. 5. **Local disk (R6).** Only if `storage` is `local_disk`. Check: the R6 acceptance tests pass. 6. **Download (R3).** Check: the R3 acceptance tests pass. 7. **Attach and clean up (R5).** With a clock that tests can set. Check: the R5 acceptance tests pass. 8. **Scan hook (R7).** Only if `scan_hook` is on. Check: the R7 acceptance tests pass. 9. **Previews (R8).** Only if `image_previews` is on. Check: the R8 acceptance tests pass. 10. **The upload control (R9).** Check: the control can be used with a keyboard alone and at 360 pixels wide. 11. **Finish.** Write the README and run the whole test suite. Check: every item under "Definition of done" in `spec.md` is true.