Chunk Uploading on REST API failed with the error message "X-Cld-Error: Chunk size doesn't match upload size: 10240000 - 36592771"

Comments

3 comments

  • Avatar
    Joel Levi Hernández Fernández

    Hey Stephen,

    Would be better to reply here so that other people who also have this issue can find a solution right away. 

    What was the solution?

    0
    Comment actions Permalink
  • Avatar
    Aleksandar Kostadinov

    Hi Joel,

    The issue was that the chunked upload request being made was not quite right in terms of the values passed as part of the Content-Range header. In this case, the entire file was being sent but the Content-Range header says that a 10MB chunk was to be expected.

    Please see the following example JSFiddle that has a working chunked-upload solution in pure JavaScript:
    https://jsfiddle.net/leptians/hLajmbpf/

    If you're running into any issues please share more details such as your code and the exact error message from the API and we can assist.

    0
    Comment actions Permalink
  • Avatar
    Stephen Doyle

    Hello Nishimori,

    I can see that you also opened a support request about the same issue - I'll reply to that support request shortly

    Best Regards,

    Stephen

    -1
    Comment actions Permalink

Please sign in to leave a comment.