I was trying to upload files to my dropbox account reading dropbox api documentation.I got a temporary upload file link when i did the following cURL command
curl -X POST https://api.dropboxapi.com/2/files/get_temporary_upload_link \ --header "Authorization: Bearer <Bearer Token> \ --header "Content-Type: application/json" \ --data "{\"commit_info\":{\"autorename\":true,\"mode\":\"add\",\"mute\":false,\"path\":\"/dog.jpg\",\"strict_conflict\":false},\"duration\":3600}"
The response was like this
{"link": "https://content.dropboxapi.com/apitul/1/dfkjeijaf"}
where "dfkjeijaf" is a code i replaced for showing publicly here. I tried to upload files to this url through postman, for this i set content-type application/octet-streamand passed a file in the request body as binary. but i am getting an error response withstatus code 409 and response body as "Temporary upload link led to invalid upload attempt". what i am doing wrong?