Error Uploading File exceding 1MB

回答済み
新規投稿

コメント

1件のコメント

  • 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
    コメントアクション パーマリンク

サインインしてコメントを残してください。