We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7c61ed1 + 32e4505 commit e183803Copy full SHA for e183803
src/controllers/UploadController.php
@@ -3,6 +3,7 @@
3
namespace Unisharp\Laravelfilemanager\controllers;
4
5
use Illuminate\Support\Facades\File;
6
+use Illuminate\Support\Facades\Log;
7
use Intervention\Image\Facades\Image;
8
use Symfony\Component\HttpFoundation\File\UploadedFile;
9
use Unisharp\Laravelfilemanager\Events\ImageIsUploading;
@@ -83,7 +84,13 @@ private function proceedSingleUpload($file)
83
84
chmod($new_file_path, config('lfm.create_file_mode', 0644));
85
} catch (\Exception $e) {
86
array_push($this->errors, parent::error('invalid'));
- // FIXME: Exception must be logged.
87
+
88
+ Log::error($e->getMessage(), [
89
+ 'file' => $e->getFile(),
90
+ 'line' => $e->getLine(),
91
+ 'trace' => $e->getTraceAsString()
92
+ ]);
93
94
return false;
95
}
96
0 commit comments