Issues with files/upload_sessions returning error 415 unsuppored media type
AnsweredTrying to upload a large file that does not exist on box yet and keep getting error 415 no matter what I change. Can anyone see what I messed up in this call?
POST https://upload.box.com/api/2.0/files/upload_sessions/
Authorization: Bearer <key removed>
User-Agent: libwww-perl/6.34
Content-Length: 85
Content-Type: application/json
{
"folder_id": "0",
"file_size": "2898786269",
"file_name": "test_log.zip"
}
Looking at the example this should work. Even if I have something wrong error code 415 Unsupported Media Type makes no sense here....
If I try and upload a new version of a existing file using files/fileID/upload_sessions everything works as expected. Just cannot get uploading new files to work.
-
I was just having the exact same problem. The official documentation here lists a url with the trailing slash. Someone should fix that.
Please sign in to leave a comment.
Comments
6 comments