Laravel 8 tutorial - File Upload

Laravel 8 tutorial - File Upload

Code Step By Step

3 года назад

56,438 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Code Step By Step
Code Step By Step - 28.05.2022 20:04

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

Ответить
تعلم الهندسة الصناعية باحتراف باللغة العربية
تعلم الهندسة الصناعية باحتراف باللغة العربية - 01.04.2023 01:44

store image must be inside the application ?????? not on device

Ответить
Ashok Neupane
Ashok Neupane - 09.02.2023 11:57

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

Ответить
الريادة إدارة مخازن
الريادة إدارة مخازن - 09.02.2023 11:08

thanks

Ответить
Akhil Prazapati
Akhil Prazapati - 18.11.2022 19:08

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

Ответить
Eng duceysane Yusuf
Eng duceysane Yusuf - 15.11.2022 08:22

thank you sir i just combine last leson for flash session and this lesson :
session()->flash('status', 'Image was Uploaded successful!');
$req->file('file')->store('images');
return redirect('upload');

Ответить
Madhu Raj
Madhu Raj - 25.10.2022 17:28

Sir, please do react tutorial in english

Ответить
SinClear Gaming
SinClear Gaming - 26.05.2022 15:19

how to add product using file to database

Ответить
Sujon Ahmed
Sujon Ahmed - 03.01.2022 20:22

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

Ответить
Dharmishtha Patel
Dharmishtha Patel - 17.09.2021 19:00

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

note :- here, 'user_image' is filename.

Ответить
J For Fun
J For Fun - 14.09.2021 06:11

Your title about teaching language was hindi...You are using english..\by the way you can make it more understood using hindi/urdu language

Ответить
Oukassi Asmaa
Oukassi Asmaa - 09.07.2021 11:18

Request doesn't get uploaded file {"_token":"Cn5sIGuGEdcxWhgySe7Ur5ycnRR","file":{}} why how to fix it

Ответить
Shivam Tripathi
Shivam Tripathi - 21.05.2021 17:36

which plugin are you using sir??

Ответить
Akash Malik
Akash Malik - 21.05.2021 13:28

Disk [1621592824.jpg] does not have a configured driver.
Kindly sir tell me how to solve this error?
store image with time, this error occurred

Ответить
Akash Malik
Akash Malik - 20.05.2021 14:44

return redirect('upload'); is not working. How to redirect on this page

Ответить
Rihan Chowdhur
Rihan Chowdhur - 25.04.2021 18:44

How to download?

Ответить
Mohsin Nazeer
Mohsin Nazeer - 04.04.2021 08:14

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

Ответить
rasool fallah
rasool fallah - 16.03.2021 17:13

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

Ответить
Bhavyakumar Panchotiya
Bhavyakumar Panchotiya - 07.02.2021 19:23

class upload extends Controller
{
public function image(Request $req)
{


$ext = $req->file('file')->getClientOriginalExtension();
return $req->file('file')->storeAS('docs', 'FileName.' . $ext);
}
}

Ответить
Priyanka's Corner
Priyanka's Corner - 31.01.2021 11:04

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

Ответить
LAXMAN KUMAR RAWAT
LAXMAN KUMAR RAWAT - 24.01.2021 21:23

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

Ответить
Rahul Sharma
Rahul Sharma - 18.01.2021 17:35

plz make video for image upload and show

Ответить
quocdat tranquoc
quocdat tranquoc - 07.01.2021 12:22

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

Ответить
Sargis Grigoryan
Sargis Grigoryan - 19.11.2020 13:00

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

Ответить
Ale DC
Ale DC - 16.11.2020 17:25

Hi, thanks a lot for the tuto... just one cuestion, how can save the path of the uploaded file in my database?? or what is the way to retrieve the image uploaded?

Ответить
Maulik Dholariya
Maulik Dholariya - 08.11.2020 12:24

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

Ответить
Noor Alalem
Noor Alalem - 02.11.2020 14:05

THANK YOU :)

Ответить
Yousef Zinsaz
Yousef Zinsaz - 24.10.2020 14:05

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

Ответить
aamir ali
aamir ali - 20.10.2020 16:14

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

Ответить
Адепт Совиности
Адепт Совиности - 15.10.2020 13:38

INDIAN PROGRAMMING TUTORIALS THE BESSTSTTSTSTSTSTSTSTSTST!!!!!!!!!!!!!!!!!!!!

Ответить
CodeWithSk
CodeWithSk - 22.09.2020 19:16

Hi sir I want to some questions for php

Ответить