Feature: Files only through their record
Description
Files are uploaded with create and read with get, and only after the package that
owns the file decided that the caller may read the record it belongs to. A colleague who guesses the address of
someone else's file gets the same "not found" as for an address that does not exist. Files are streamed with headers
that keep a browser from running anything in them; a viewer can load a large PDF in parts, and only PDFs and images
are shown inside a page. An upload that no record took within a day is discarded. When HR or a manager opens a file
with personal data of someone else, that person sees it in their data access log. The company logo is the only file
anybody can load without logging in, from get.
Impact
The web server needs to accept uploads of 25 MB (upload_ 26M, post_ 27M); ddev and
the test suites are set up so. Unlinked uploads are removed by a daily job at 03:00.