mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-19 00:22:15 +00:00
delete items in file request
This commit is contained in:
@@ -65,10 +65,9 @@ class DeleteFileOrFolderAction
|
||||
Storage::delete("/files/$file->user_id/$file->basename");
|
||||
|
||||
// Delete thumbnail if exist
|
||||
if ($file->thumbnail) {
|
||||
Storage::delete(
|
||||
"/files/$file->user_id/{$file->getRawOriginal('thumbnail')}"
|
||||
);
|
||||
if ($file->type === 'image') {
|
||||
getThumbnailFileList($file->basename)
|
||||
->each(fn ($thumbnail) => Storage::delete("files/$file->user_id/$thumbnail"));
|
||||
}
|
||||
|
||||
// Delete file permanently
|
||||
@@ -104,10 +103,9 @@ class DeleteFileOrFolderAction
|
||||
Storage::delete("/files/$file->user_id/$file->basename");
|
||||
|
||||
// Delete thumbnail if exist
|
||||
if ($file->thumbnail) {
|
||||
Storage::delete(
|
||||
"/files/$file->user_id/{$file->getRawOriginal('thumbnail')}"
|
||||
);
|
||||
if ($file->type === 'image') {
|
||||
getThumbnailFileList($file->basename)
|
||||
->each(fn ($thumbnail) => Storage::delete("files/$file->user_id/$thumbnail"));
|
||||
}
|
||||
|
||||
// Delete file permanently
|
||||
|
||||
Reference in New Issue
Block a user