FIX: redirect to directory detail after file delete
This commit is contained in:
@@ -82,10 +82,11 @@ class EditUploadedFile extends Controller
|
|||||||
return $this->fileNotFound();
|
return $this->fileNotFound();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$directoryId = $file->directory_id;
|
||||||
$file->delete();
|
$file->delete();
|
||||||
|
|
||||||
return redirect()
|
return redirect()
|
||||||
->route('upload.overview')
|
->route('upload.overview', ['id' => $directoryId])
|
||||||
->with('success', trans('admin/fileManager.fileDeleted'));
|
->with('success', trans('admin/fileManager.fileDeleted'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user