Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

danmoore1987's avatar
danmoore1987
New member | Level 2
5 years ago

Re: Upload zip file via Dropbox Api and curl

Hi Greg-DB,

 

What modifications are required to upload large files (~50gb) using curl on a CentOS server? My apologies, I am quite the newbie to bash! This is the code:

curl -X POST https://content.dropboxapi.com/2/files/upload \
--header "Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
--header "Dropbox-API-Arg: {\"path\": \"/Project_backup/Backup_files.tar.gz\"}" \
--header "Content-Type: application/octet-stream" \
--data-binary @"Backup_files.tar.gz"


It hangs for a while then I get this error whatever it means....:

\"https://www.dropbox.com/register?_tk=fof\"\u003eF\u00e5 en gratis konto\u003c/a\u003e\u003c/li\u003e \u003cli\u003e\u003ca href=\"https://www.dropbox.com/plus?_tk=fof\"\u003eDropbox Plus\u003c/a\u003e\u003c/li\u003e \u003cli\u003e\u003ca href=\"https://www.dropbox.com/business?_tk=fof\"\u003eDropbox Business\u003c/a\u003e\u003c/li\u003e \u003c/ul\u003e \u003c/div\u003e \u003c/div\u003e", "id": "\u003cdiv class=\"not-found\"\u003e \u003ch1\u003eKesalahan (4xx)\u003c/h1\u003e Kami tidak dapat menemukan halaman yang Anda cari. \u003cdiv class=\"not-found--links\"\u003e Berikut beberapa tautan yang mungkin bisa membantu: \u003cul\u003e \u003cli\u003e\u003ca href=\"https://www.dropbox.com/home?_tk=fof\"\u003eBeranda\u003c/a\u003e\u003c/li\u003e \u003cli\u003e\u003ca href=\"https://www.dropbox.com/help?_tk=fof\"\u003ePusat bantuan\u003c/a\u003e\u003c/li\u003e \u003cli\u003e\u003ca href=\"https://www.dropbox.com/login?_tk=fof\"\u003eMasuk\u003c/a\u003e\u003c/li\u003e \u003cli\u003e\u003ca href=\"https://www.dropbox.com/register?_tk=fof\"\u003eDapatkan akun gratis\u003c/a\u003e\u003c/li\u003e \u003cli\u003e\u003ca href=\"https://www.dropbox.com/plus?_tk=fof\"\u003eDropbox Plus\u003c/a\u003e\u003c/li\u003e \u003cli\u003e\u003ca href=\"https://www.dropbox.com/business?_tk=fof\"\u003eDropbox Business\u003c/a\u003e\u003c/li\u003e \u003c/ul\u003e \u003c/div\u003e \u003c/div\u003e", "es": "\u003cdiv class=\"not-found\"\u003e \u003ch1\u003eError (4xx)\u003c/h1\u003e No hemos encontrado la p\u00e1gina que est\u00e1s buscando. \u003cdiv class=\"not-found--links\"\u003e Aqu\u00ed tienes algunos enlaces que tal vez puedan ayudarte: \u003cul\u003e \u003cli\u003e\u003ca href=\"https://www.dropbox.com/home?_tk=fof\"\u003eInicio\u003c/a\u003e\u003c/li\u003e \u003cli\u003e\u003ca href=\"https://www.dropbox.com/help?_tk=fof\"\u003eCentro de ayuda\u003c/a\u003e\u003c/li\u003e \u003cli\u003e\u003ca href=\"https://www.dropbox.com/login?_tk=fof\"\u003eIniciar sesi\u00f3n\u003c/a\u003e\u003c/li\u003e \u003cli\u003e\u003ca href=\"https://www.dropbox.com/register?_tk=fof\"\u003eObtener una cuenta gratis\u003c/a\u003e\u003c/li\u003e \u003cli\u003e\u003ca href=\"https://www.dropbox.com/plus?_tk=fof\"\u003eDropbox Plus\u003c/a\u003e\u003c/li\u003e \u003cli\u003e\u003ca href=\"https://www.dropbox.com/business?_tk=fof\"\u003eDropbox Business\u003c/a\u003e\u003c/li\u003e \u003c/ul\u003e \u003c/div\u003e \u003c/div\u003e"};
function read_cookie (name) {
        var nameEQ = name + "=";
        var ca = document.cookie.split(';');
        for (var i = 0; i < ca.length; i++) {
            var c = ca[i];
            while (c.charAt(0) == ' ') {
                c = c.substring(1, c.length);
            }
            if (c.indexOf(nameEQ) === 0) {
                return c.substring(nameEQ.length, c.length);
            }
        }
        return null;
}
function localize() {
    var locale = read_cookie('locale');
    if (locale) {
       var msg = message[locale];
       if (msg) {
           var elem = document.getElementById('errorbox');
           if (elem) {
               elem.innerHTML = msg;
           }
       }
    }
}
localize();
</script>

</body>
</html>


Thank you for your help!!! 
Warm regards

 

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!