0
OP New Sysop Apr 18, 2026 12:03pm (edited 32x) view history

Source: src/Controllers/FileController.php

Overview

No class-level docblock. Add one at the top of the file.

Extends: App\Controllers\BaseController

Public methods

index(): void

Undocumented.

showArea(string $slug): void

Undocumented.

showFile(string $id): void

Undocumented.

viewPdf(string $id): void

Undocumented.

gift(string $id): void

POST /files/{id}/gift — gift-pay for someone else's download. Body: username (recipient).

download(string $id): void

Undocumented.

playSid(string $id): void

Serve SID file binary for in-browser playback (charges credits like download).

launchEmulator(string $id): void

Serve the file binary for an in-browser emulator launch. The caller's JS uses the file extension (or the X-Emu-Platform response header we set) to pick the EJS_core to feed into EmulatorJS's loader. Charges credits like a regular download.

reportFile(string $id): void

Report a file (corrupt, miscategorized, copyright, other).

upload(string $slug): void

Undocumented.

storeUpload(string $slug): void

Undocumented.

bulkUpload(string $slug): void

Show bulk upload form (Admin/SuperAdmin only). Files uploaded here are auto-approved and no credits are awarded.

storeBulkUpload(string $slug): void

Process bulk upload (Admin/SuperAdmin only). Auto-approves all files. No credit awards.


Auto-generated from source by bin/sync-class-docs.php on 2026-04-21 16:28 CDT. Re-runs overwrite this thread body.


. __  ____   ___ ____  _     _     
 / /_| ___| / _ \___ \(_)___| |__  
| '_ \___ \| | | |__) | / __| '_ \ 
| (_) |__) | |_| / __/| \__ \ | | |
 \___/____/ \___/_____|_|___/_| |_|
        D2sk - Sysop

Log in or register to reply to this thread.