Hi
I just need a little bump in the right direct to upload a file to an approved Temporary Upload Link.
I've created the link, and I have the source file in application/octet-stream format, ready and waiting behind a URL.
How do I POST that URL to the DropBox API via JSON?
The documentation details this for cURL in order to POST data to the URL:
curl -X POST https://content.dropboxapi.com/apitul/1/OBFUSCATED
--header "Content-Type: application/octet-stream"
--data-binary @local_file.txt
However, for starters, this is a JSON example we're working with here. Also, I can't find a way to resemble that "data-binary" part into a JSON message where all I have is an octect-stream URL that does not finish with a neat "filename.ext" ending.
EDIT - Forgot to mention that I've tried using the save_url method, same results (error below). I'm using Temporary Upload so that it can reliably ensure that an upload slot is available for the file. For the purposes of getting this done, let's assume that the file is 20-30MB. Anyway, when save_url failed, it failed with this message:
{
".tag": "failed",
"failed": {
".tag": "invalid_url"
}
}
Cheers
Eliot
Relevant links:
get_temporary_upload_link - Docs