I am trying to upload files with curl. Based on community advice I think this should be correct:
curl -X POST https://content.dropboxapi.com/2/files/upload \
--header "Authorization: Bearer MyOauthApiKey" \
--header "Dropbox-API-Arg: {\"path\": \"/directory/myfile\"}" \
--header "Content-Type: application/octet-stream" \
--data-binary @directory/myfile
but I get a 404 error. Going to https://content.dropboxapi.com/2/files/upload in a browser window also resuts in an error.
What is the correct way to do this?