I am integrating box cloud in my application. I am working with Qt platform.
In box documentation, they said to post like this which is in curl.
curl https://upload.box.com/api/2.0/files/content \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-F filename=@FILE_NAME \
-F folder_id=FOLDER_ID
where to specify the filename and folder_id parameters. I have tried by posting in the body but it is giving error. And also please tell me where to post the file contents.
Thanks.
I tried by posting with multipart/form-data using the Qt API. I am not familiar with using libcurl in Qt. But I got success with Qt API only. Here is my code.
And the reply will be the details of the file that has been uploaded to box.com. Thanks everybody for helping me in this topic.