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

Bad request when uploading a file

New post

Comments

2 comments

  • mwiller

     I tried testing the same type of request using curl, and this is what the headers looked like for a successful request:

     

    POST /api/2.0/files/content HTTP/1.1
    Host: upload.box.com
    User-Agent: curl/7.57.0
    Accept: */*
    Authorization: Bearer XXXXXXXXXX
    Content-Length: 401
    Content-Type: multipart/form-data; boundary=------------------------ab85ee32db30d827

    One thing I note is the absence of double-quotes around the boundary value in the Content-Type header — could you try removing them and see if that helps?

    0
    Comment actions Permalink
  • tarektalaat

    HI
    I am facing the same problem, i was wondering if you found a solution?
    Also how did you get the request sent from qt?

    0
    Comment actions Permalink

Please sign in to leave a comment.