laravel-filemanager icon indicating copy to clipboard operation
laravel-filemanager copied to clipboard

TypeError in LfmUploadValidator.php (null given)

Open xvital opened this issue 3 years ago • 2 comments

I am running LFM 2.5.1, and it won't upload a file (it creates directories though). Console shows TypeError in LfmUploadValidator.php (null).

UniSharp\\LaravelFilemanager\\LfmUploadValidator::__construct(): Argument #1 ($file) must be of type Symfony\\Component\\HttpFoundation\\File\\UploadedFile, null given, called in .../vendor/unisharp/laravel-filemanager/src/LfmPath.php on line 246
  • Operating system : Debian 11 (bullseye)
  • Laravel version : 9.17.0
  • Package version : 2.5.1

xvital avatar Sep 23 '22 05:09 xvital

Hi, Any solution for the problem above ?? i have the same problem

uprod avatar Dec 07 '22 18:12 uprod

hi, i solutionated my problem. it was a problem with 'unisharp.lfm.upload' in file 'resources/views/vendor/laravel-filemanager/index.blade.php and cors i changed the form action url for the good one and ... resolved..

uprod avatar Dec 07 '22 19:12 uprod