mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Fixed bug causing permission error on save and fixed non-gallery image save
This commit is contained in:
@ -65,8 +65,7 @@ class ImageController extends Controller
|
||||
{
|
||||
$this->checkPermission('image-create-all');
|
||||
$this->validate($request, [
|
||||
'file' => 'image|mimes:jpeg,gif,png',
|
||||
'uploaded_to' => 'integer|exists:pages,id'
|
||||
'file' => 'image|mimes:jpeg,gif,png'
|
||||
]);
|
||||
|
||||
$imageUpload = $request->file('file');
|
||||
|
Reference in New Issue
Block a user