Welcome to the new Box Support website. Check out all the details here on what’s changed.

Error Uploading File exceding 1MB

Answered
New post

Comments

1 comment

  • cbetta

    Hi  I just gave this a test as well and it seems to work fine:

     

    curl -X POST https://upload.box.com/api/2.0/files/content \
         -H 'Authorization: Bearer hXLolSiUKjMSA9CBDwpIcYU23y0XMr6e' \
         -H "Content-Type: multipart/form-data" \
         -F attributes='{"name":"File.pdf", "parent":{"id":"0"}}' \
         -F file=@file.pdf

     

    I did notice that your code had an extra double-quote in the Authorization header at the end. This might have caused some weirdness to occur.

     

    Also, it seems the error does not seem to point at an issue with the file size being too large, but with the non-file data (the attributes field). Can you please retry and verify the full command you used?

    0
    Comment actions Permalink

Please sign in to leave a comment.