]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/ImageController.php
Merge branch 'master' into bug/image-upload
[bookstack] / app / Http / Controllers / ImageController.php
index a61f447eb5ea883749c81ca541a6e34018441971..9782a94c42dfcbbb39a8b23690d3f7c34cc57708 100644 (file)
@@ -120,7 +120,7 @@ class ImageController extends Controller
     {
         $this->checkPermission('image-create-all');
         $this->validate($request, [
-            'file' => 'is_image'
+            'file' => 'required|image'
         ]);
 
         if (!$this->imageRepo->isValidType($type)) {