fix: upload progress bar not visible — collectFileNames checks FilePond instances; remove admin auth from progress poll endpoint

This commit is contained in:
Pontoporeia
2026-05-11 16:55:58 +02:00
parent d873a7f09e
commit c3f6e8a033
4 changed files with 34 additions and 2 deletions

View File

@@ -15,8 +15,10 @@
*/
require_once __DIR__ . '/../../../bootstrap.php';
require_once __DIR__ . '/../../../src/AdminAuth.php';
AdminAuth::requireLogin();
// No AdminAuth check here — this endpoint is called by client-side JS during
// both admin and partage (student) form uploads. Access is guarded by the
// progress token (64 bits of entropy, fresh per form render) which must match
// a temp file that only exists during an active upload.
header('Content-Type: application/json');