WARNING: you're viewing docs for an outdated version. View the docs for the current version.
Dropbox Adapter (V1)
Installation
composer require spatie/flysystem-dropbox
Usage
A token can be generated in the App Console for any Dropbox API app. You’ll find more info at the Dropbox Developer Blog.
use League\Flysystem\Filesystem;
use Spatie\Dropbox\Client;
use Spatie\FlysystemDropbox\DropboxAdapter;
$client = new Client($authorizationToken);
$adapter = new DropboxAdapter($client);
$filesystem = new Filesystem($adapter, ['case_sensitive' => false]);
Case Sensitivity
Because Dropbox is not case-sensitive you’ll need to set the 'case_sensitive'
option to false
.