Files
xamxam/app
Pontoporeia d3f5802e7f fix(peertube): node-uploadx resumable upload to stop 504 on large A/V
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.
2026-09-18 16:26:49 +02:00
..