feat: vcard photo import (#2915)

This commit is contained in:
Alexis Saettler
2019-08-22 19:31:23 +02:00
committed by GitHub
parent 37f291022e
commit 10e73e35b6
7 changed files with 316 additions and 25 deletions
+5 -9
View File
@@ -251,15 +251,11 @@ class SettingsController
{
$path = dispatch_now(new ExportAccountAsSQL());
$driver = Storage::disk(ExportAccountAsSQL::STORAGE)->getDriver();
if ($driver instanceof \League\Flysystem\Filesystem) {
$adapter = $driver->getAdapter();
if ($adapter instanceof \League\Flysystem\Adapter\AbstractAdapter) {
return response()
->download($adapter->getPathPrefix().$path, 'monica.sql')
->deleteFileAfterSend(true);
}
}
$adapter = disk_adapter(ExportAccountAsSQL::STORAGE);
return response()
->download($adapter->getPathPrefix().$path, 'monica.sql')
->deleteFileAfterSend(true);
}
/**