Hello,
After successfully managed to use bruno (postman like) to upload a video, I am working towards to automate the process. But I would like, if possible, to not use curl
https://docs.joinpeertube.org/api-rest-reference.html#tag/Video-Upload/operation/uploadLegacy
If I use « add file » it works, (thats how I got it working on the previous topic)
However, Id like to be able to use the PATH, like in the curl example. But I am struggling to get it working in http(s) mode. I have tried adding an « @ », according to this documentation https://medium.com/@API4AI/post-a-file-via-http-request-the-ultimate-guide-b23fb70a3f73 and this one MIME types (IANA media types) - HTTP | MDN I have tried with mimetype=@full_path mimetype being I have tried video/mp4 and application/octet-stream
but everytime I get e400 bad request
"videofile": {
"type": "field",
"value": "@\"/home/audric/Downloads/Destiny 2 PC - escopetas y arco [AjLI2uE7GWA].mp4\"",
"msg": "Should have a file",
"path": "videofile",
"location": "body"
does anyone know how to get legacyvideoupload with file path in NON curl format?
Thanks!