mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-09-25 01:53:03 +02:00
Admin MP4 uploads failed at 100% with 'erreur de chargement'. Root cause: FilepondHandler relayed the whole file to PeerTube via one synchronous multipart POST; the PeerTube edge proxy answered 504 Gateway Time-out once the relay exceeded its upstream timeout (xamxam-error log: filepond_peertube 504). Migrate PeerTubeService::upload() to the resumable protocol (docs.joinpeertube.org, node-uploadx — NOT Google resumable): - POST /api/v1/videos/upload-resumable -> 201 + Location - PUT <Location> (Content-Range + application/octet-stream) -> 308/200 - DELETE <Location> on failure (cancel) Chunked PUT keeps every request under the PeerTube edge proxy timeout. Verified live against videos.erg.be: 61.7MB BigBuckBunny MP4 uploads in 13.6s and returns a real shortUUID. Signature unchanged; both call sites (ThesisCreateController, FilepondHandler) unaffected.