I have store the file in storage/app/files folder by $path=$request->file->store(\'files\') and save the path \"files/LKaOlKhE5uITzAbRj5PkkNunWldmUTm3tOWP
I'm using Laravel 6.X and was having a similar issue. The go around according to your issue is as follows: 1)In your routes/web.php do something like
/**sample route**/
Route::get('/download/{path}/', 'MyController@get_file');
2)Then in your controller (MyController.php) for our case it should look like this:
download($path);
}
}