fix PeerTube upload: final working solution — simple multipart POST with CURLFile; iterated through Google-resumable PATCH protocol debugging (HTTP version negotiation, chunk body encoding, off-by-one fixes) before settling on simpler POST approach

This commit is contained in:
Pontoporeia
2026-05-11 12:09:19 +02:00
parent 1b0451581d
commit cdec3e96a6
9 changed files with 281 additions and 112 deletions

View File

@@ -17,7 +17,8 @@
- [x] Add CURLOPT_HEADERFUNCTION to capture response headers
- [x] Disable CURLOPT_FOLLOWLOCATION to preserve Location header
- [x] Add cancelUpload() helper for Delete-on-error cleanup
- [ ] Test with actual PeerTube instance
- [x] PeerTube upload fixed — simple multipart POST /api/v1/videos/upload works
- [x] Add upload-progress.js — XHR form submit with progress bar for admin add/edit forms
## HTMX Toast Feedback for Settings Checkboxes (contenus.php)