Skip to content

Instantly share code, notes, and snippets.

@frankdejonge
Created November 5, 2014 21:29
Show Gist options
  • Save frankdejonge/6a9cff6ae88ca32d7d60 to your computer and use it in GitHub Desktop.
Save frankdejonge/6a9cff6ae88ca32d7d60 to your computer and use it in GitHub Desktop.
Write to dropbox example
<?php
use League\Flysystem\Filesystem;
use League\Flysystem\Adapter\Dropbox;
use League\Flysystem\Adapter\Local;
$dropbox = new Filesystem(new Dropbox($client, 'dropbox/root/dir'));
$local = new Filesystem(new Local('loca/root/path'));
$dropbox->write('destination.ext', $local->read('relative/path/to/file.ext'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment