mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-20 17:02:16 +00:00
ftp implementation
This commit is contained in:
@@ -48,6 +48,11 @@ class ZipAction
|
||||
|
||||
$zip->add("s3://$bucketName/$filePath", $file->name);
|
||||
}
|
||||
|
||||
// ftp client
|
||||
if (isStorageDriver('ftp')) {
|
||||
$zip->addRaw(Storage::get($filePath), $file->name);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -79,12 +84,15 @@ class ZipAction
|
||||
$zip->add(Storage::path($filePath), $zipDestination);
|
||||
}
|
||||
|
||||
// s3 client
|
||||
if (isStorageDriver('s3')) {
|
||||
$bucketName = config('filesystems.disks.s3.bucket');
|
||||
|
||||
$zip->add("s3://$bucketName/$filePath", $zipDestination);
|
||||
}
|
||||
|
||||
if (isStorageDriver('ftp')) {
|
||||
$zip->addRaw(Storage::get($filePath), $zipDestination);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user