# File Uploads Reference for all file upload handling in XAMXAM: accepted types, size limits, storage layout, display behaviour, and ordering. --- ## Upload surfaces There are three forms where files can be uploaded: | Surface | Path | Who uses it | |---------|------|-------------| | Admin — add thesis | `/admin/add.php` | Administrator | | Admin — edit thesis | `/admin/edit.php?id=N` | Administrator | | Student submission | `/partage/` | Student via share link | All three surfaces share the same backend controller logic (`ThesisCreateController` / `ThesisEditController`) and the same validation rules. --- ## File categories Each uploaded file is assigned a `file_type` that controls how it is displayed on the public TFE page. | `file_type` | How displayed | Trigger | |-------------|---------------|---------| | `main` | Inline `