Laravel 8 tutorial - File Upload

preview_player
Показать описание
In this laravel 8 video tutorial, we learn how to upload a file in laravel a simple way. This video is made by anil Sidhu in the English language.

steps of video
Make View
Make Html Form
Make Controller
Code for upload file
Interview Question
Laravel 9 tutorial

Laravel 9 full playlist
Рекомендации по теме
Комментарии
Автор

Please support me by subscribe, like and comment :) thank you

codestepbystep
Автор

You are the legengd. plz answer the queries in interview question by pinning the post.

ashokbishwas
Автор

Interview Que. - ans. :-Yes, we can assign customize filename by help of storeAs().
for ex.
$request->file('image')->storeAs(
'docs',

note :- here, 'user_image' is filename.

dharmishthapatel
Автор

Interview questions ans
If we want to give same file name then extract that original file name using
->getClientOriginalName() ;
२. return $req->file('file') ->storeAs('docs', $name) ;

priyankascorner
Автор

$ext =
return $req->file('file')->storeAS('docs', $ext);

sujon-ahmed
Автор

Interview question:
$md5Name =
$guessExtension =
$req->file('file')->storeAs('docs', $md5Name.'.'.$guessExtension, 'public');
saveAs function can change image name

laxmankumarrawat
Автор

Interview question: First you need to take your file's extension like` than save it with new name like` return $req->file('file')->storeAs('docs',  'FileName.'.$ext);

sargisgrigoryan
Автор

we can name it as orignal through this function :
$file = $request->file('file');
$originalFileName =
return $file->storeAs('doc', $originalFileName);

jenilzinzuvadia
Автор

how to display the uploaded files ???one video Love from Kathmandu....

akhilprazapati
Автор

call storeAs() method and give first argiument as path and 2nd as filename and third is optional

aamirali-dqoy
Автор

store image must be inside the application not on device

gcecyzy
Автор

Please put a tutorial on ckfinder in Laravel 8 I searched the internet a lot but I did not find a tutorial video Please prepare a complete tutorial on this thank you

rasoolfallah
Автор

Sir, please do react tutorial in english

madhuraj
Автор

sir the image just upload into the folder how can we upload it in the database

mohsinnazeer
Автор

i have problem with errors "Call to a member function store() on null".
please help me

quocdattranquoc
Автор

how to show this photo in laravel, men let's create this, thanks about vidoes

yousefzk
Автор

$file = $request->file('file');
$name =
$file->move('images', $name);
$input['path'] = $name;

maulikdholariya
Автор

how to add product using file to database

sincleargaming
Автор

plz make video for image upload and show

rahulsharma
Автор

Hi sir I want to some questions for php

codewithsk