after executing all steps this error is showing 'Class "App\Http\Controllers\products" not found'' on this line $data=new products(); what should i do? can you help
I have watched dozens of tutorials trying to display a pdf file in an element and it wasn't working. All of a sudden I watch this video and it works! And the crazy thing about it is that you did not change anything, it's the same as the others🙆♂🙆♂🙆♂
i am facing 404 not found.My File is successfully uploaded in db and in location also but not showing in ,,,i use move(public_path('images') instead of storage. Pls help i am stuck
Thanks sir for this simple code. Now I Have exactly like in this video but my file isn't downloading / viewing. I realized that you typed the name storage wrongly when calling the illuminate.... and yours worked. Could you please give a solution to make the file downloadable
Thank you so much sir, but I have a question why only pdf, photos and videos can be seen in view. like docx, excel can't be seen in view, it downloads automatically.
The upload works fine and files are uploaded in assets folder and the View worked fine, but still download Show The GET method is not supported for this route. Supported methods: POST. what can i do
Great 👍🏻’ but what if we want to keep it optional ? I have try to keep it empty and give me error call bad method getClientExtention on null () Can you please advise ? Thanks
Sir can we upload and view the pdf video documents file threw ajax. If its possible then please one video where help of ajax video pdf file will upload. Its request sir
First check if the file is successfully uploaded to the database. Then Check the file location where you are uploading your file. After that check the file location in the code from where you are viewing and downloading.
@@WebTechKnowledge thank u for ur response . -the upload works fine and files are uploaded in assets folder, but still download and view show page not found and the package(use Illuminate\Support\Facades\Storage; ) is not being used also public function download(Request $request, $file) { //dowload file from assetes.file 'assets is the file location' return response()->download(public_path('assets/' . $file)); } //Request $request is not being used its faded in vs code
@@WebTechKnowledge yes exactly. e.g I have a student file .txt, .docx or any other file. I want to extract the details e.g name, address, contact etc., information from that student file.
@@WebTechKnowledge yes, thanks a lot sir but when I try to view the document that I’ve been uploaded,it doesn’t show but still can download it. I try it on your code and get the same result too
Check the file location where you are saving the file .then check in the blade that are you actually calling the file properly ..It's not showing probably because file location is not correct.