Task: File storage in the core 

Description 

The core gains one storage for every file adsum keeps. Each file belongs to a purpose that its package declares, such as employee photos or the company logo, with the formats it accepts, its largest size, the kind of data it holds and who may read it. The format of a file is recognised from its content, never from its name: an HTML page called scan.png or a macro-enabled workbook renamed to .xlsx is no image and no workbook. The content lies in a directory of the server or in an S3-compatible bucket with private access, under a random identifier that names neither the file nor the person.

Impact 

Operators choose the backend with ADSUM_FILE_BACKEND (local by default, below var/storage/files, or s3 with the ADSUM_FILE_S3_* settings and the suggested package league/flysystem-aws-s3-v3). Nothing changes for users yet.