.. include:: /Includes.rst.txt .. _feature-1792040724: ======================================== Feature: Files only through their record ======================================== Description =========== Files are uploaded with ``createFileUpload`` and read with ``getFileContent``, 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 ``getPublicFileContent``. Impact ====== The web server needs to accept uploads of 25 MB (``upload_max_filesize`` 26M, ``post_max_size`` 27M); ddev and the test suites are set up so. Unlinked uploads are removed by a daily job at 03:00. .. index:: API, Configuration, package:adsum-core