Created
November 5, 2014 21:29
-
-
Save frankdejonge/6a9cff6ae88ca32d7d60 to your computer and use it in GitHub Desktop.
Write to dropbox example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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