mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-07 21:44:51 +00:00
Bug fix in Dropbox file disk creation. Applies disk path.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use Illuminate\Filesystem\FilesystemAdapter;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use League\Flysystem\Filesystem;
|
||||
@@ -28,7 +29,11 @@ class DropboxServiceProvider extends ServiceProvider
|
||||
$config['token']
|
||||
);
|
||||
|
||||
return new Filesystem(new DropboxAdapter($client));
|
||||
$root = trim($config['root'] ?? '', '/');
|
||||
$adapter = new DropboxAdapter($client, $root);
|
||||
$flysystem = new Filesystem($adapter);
|
||||
|
||||
return new FilesystemAdapter($flysystem, $adapter, $config);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user