Best way to upload 30k videos?

Thanks for mentioning the logs, I should check that more often :sweat_smile:

warn[08/11/2023 08:28:07] Incorrect request parameters
{
  "path": "/api/v1/videos/upload",
  "err": {
    "thumbnailfile": {
      "msg": "This thumbnail file is not supported or too large. Please, make sure it is of the following type: .png, .jpg, .jpeg, .webp",
      "param": "thumbnailfile",
      "location": "body"
    },
    "previewfile": {
      "msg": "This preview file is not supported or too large. Please, make sure it is of the following type: .png, .jpg, .jpeg, .webp",
      "param": "previewfile",
      "location": "body"
    }
  }
}

Oops I forget to set the blob type, now that works:

let poster = new Blob([fs.readFileSync(posterurl)], {
  type: "image/jpeg"
});
1 « J'aime »