Answer the question
In order to leave comments, you need to log in
How to upload a large file via cURL?
First I tried like this:
curl -X POST -d https://content.dropboxapi.com/2/files/alpha/upload \
--header 'Authorization: Bearer token' \
--header 'Content-Type: application/octet-stream' \
--header 'Dropbox-API-Arg: {"path":".folder."}' \
--data-binary @'/backup/file.zip' \
cat /backup/file.zip | curl -X POST https://content.dropboxapi.com/2/files/alpha/upload \
--header 'Authorization: Bearer token' \
--header 'Content-Type: application/octet-stream' \
--header 'Dropbox-API-Arg: {"path":"/path/file.zip"}' \
--data-binary @-'
Answer the question
In order to leave comments, you need to log in
Use Dropbox-Uploader , you can upload gigabyte files without any problems, via Dropbox'a API.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question