spatie / flysystem-dropbox

A flysystem driver for Dropbox that uses the v2 API
https://freek.dev/734-dropbox-will-turn-off-v1-of-their-api-soon-its-time-to-update-your-php-application
MIT License
342 stars 50 forks source link

Download very slow #24

Closed VincentClair closed 7 years ago

VincentClair commented 7 years ago

Do you experience any very slow download experience ? Actually, to synchronise just an html theme (25 files for 2Mb), it takes from 30s to 60s.

Here is my code :

$manager = new MountManager(['remote' => $this->getRemoteFileSystem(), 'temp' => $this->temp]);
        $remote = 'remote://';
        $temp = 'temp://';

        $files = $manager->listContents($remote, true);
        foreach ($files as $file) {
            if ($file['type'] === 'file') {
                $manager->copy($remote . $file['path'], $temp . $path . '/' . $file['path'], ['disable_asserts' => true]);
            }
        }

Have you some advices to drastically increase just download speed ? Thanks in advance !

freekmurze commented 7 years ago

Didn't have this problem myself and probably the slowness isn't caused by this package.

VincentClair commented 7 years ago

Sorry to bother you ! I've many tests on fibre networks from different internet providers and it's always slow. Or maybe it's the location: i'm from France. Do you have a paid account for Dropbox ? I have a free one and its come from there. Thanks for your help.

freekmurze commented 7 years ago

I have used non paid accounts with this. If speed is a problem, best file a support ticket at Dropbox itself (or ask your ISP).