Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

114
Views
Cloudflare returns encoding error when uploading file to stream

My javascript is the following

function uploadvideo(){
    var input = document.getElementById('myFile')

    let video = new FormData()
    video.append('file', input.files[0])
    video.append("", "\\")

    fetch("https://api.cloudflare.com/client/v4/accounts/{AccountID}/stream", {
        video,
        headers: {
            Authorization: "Bearer {Token}",
            "Content-Type": "multipart/form-data"
        },
        method: "POST"
    })
        .then(response => response.json())
        .then(data => console.log(data));
}

When the function is called, Cloudflare returns the following

main.js:17 {result: null, success: false, errors: Array(1), messages: null}errors: Array(1)0: code: 10004message: "Decoding Error"[[Prototype]]: Objectlength: 1[[Prototype]]: Array(0)messages: nullresult: nullsuccess: false[[Prototype]]: Object
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!