mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 08:09:18 +02:00
- Remove separate video/audio/peertube_video/peertube_audio pools from UI - TFE pool now accepts all file types including video/audio - When PeerTube is enabled, video/audio dropped into TFE pool auto-upload to PeerTube (process.php detects MIME and uploads immediately) - PeerTube return IDs now encode type: peertube:video:UUID or peertube:audio:UUID - load.php returns placeholder SVG for PeerTube files so they appear in FilePond - Edit mode: all existing files (including PeerTube) shown in TFE FilePond pool - Remove legacy video/audio/peertube_* handling from both controllers - Remove unused vide/audio/peertube_* entries from JS QUEUE_CONFIG
1.8 KiB
1.8 KiB
FilePond Refactor — Merge video/audio into TFE pool
- A.
fichiers-fragment.php— Remove separate video/audio pools, merge into TFE; include PeerTube in data-existing-files - B.
file-upload-filepond.js— Remove peertube_video/peertube_audio/video/audio from QUEUE_CONFIG, remove acceptedFileTypesPeerTube, remove data-peertube-active logic - C.
process.php— When queue_type=tfe and video/audio + PeerTube enabled, upload to PeerTube, return peertube:UUID - D.
load.php— Handle peertube DB files: return placeholder SVG blob - E.
form.php— Include PeerTube files in existingFilesJsonForTfe for edit mode - F.
ThesisEditController.php— Remove separate video/audio/peertube_* handleFilePondQueueFiles calls; also legacy $_FILES path - G.
ThesisCreateController.php— Same as F
Previous items
- Step 1 — Build 4 PHP endpoints (process.php, revert.php, load.php, remove.php)
- Step 2 — Update ThesisFileHandler to accept file_ids instead of $_FILES
- Step 3 — Update file-upload-filepond.js (async server model + all fixes)
- Step 4 — Update templates (data-queue-type on all inputs, data-existing-files in edit)
- Step 5 — Update upload-progress.js (new collectFileNames, pending-uploads guard)
- Step 6 — QA / integration testing
- Step 7 — Cleanup: remove transition flags, remove INPUT_ID_TO_TYPE
CSP & Deploy Fixes (May 2026)
- Track vendor JS files in jj (they were moved to vendor/ but never
jj file tracked) - Add
script-src 'self' 'unsafe-inline'to main CSP header (public pages use inline scripts + onclick handlers) - Add
storage/tmp/filepond/*to .gitignore + rsync exclude, with .gitkeep - Deploy:
just deployto sync vendor JS files + updated CSP + .gitkeep to server