Комментарии:
Please support me by subscribe, like and comment :) thank you
Ответитьstore image must be inside the application ?????? not on device
ОтветитьYou are the legengd. plz answer the queries in interview question by pinning the post.
Ответитьthanks
Ответитьhow to display the uploaded files ???one video please.................. Love from Kathmandu....
Ответить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');
Sir, please do react tutorial in english
Ответитьhow to add product using file to database
Ответить$ext = $req->file('file')->getClientOrginalName();
return $req->file('file')->storeAS('docs', $ext);
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.
Your title about teaching language was hindi...You are using english..\by the way you can make it more understood using hindi/urdu language
ОтветитьRequest doesn't get uploaded file {"_token":"Cn5sIGuGEdcxWhgySe7Ur5ycnRR","file":{}} why how to fix it
Ответитьwhich plugin are you using sir??
Ответить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
return redirect('upload'); is not working. How to redirect on this page
ОтветитьHow to download?
Ответитьsir the image just upload into the folder how can we upload it in the database
Ответить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
Ответитьclass upload extends Controller
{
public function image(Request $req)
{
$ext = $req->file('file')->getClientOriginalExtension();
return $req->file('file')->storeAS('docs', 'FileName.' . $ext);
}
}
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) ;
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
plz make video for image upload and show
Ответитьi have problem with errors "Call to a member function store() on null".
please help me
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);
Ответить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?
Ответить$file = $request->file('file');
$name = $file->getClientOriginalName();
$file->move('images',$name);
$input['path'] = $name;
THANK YOU :)
Ответитьhow to show this photo in laravel , men let's create this , thanks about vidoes
Ответитьcall storeAs() method and give first argiument as path and 2nd as filename and third is optional
ОтветитьINDIAN PROGRAMMING TUTORIALS THE BESSTSTTSTSTSTSTSTSTSTST!!!!!!!!!!!!!!!!!!!!
ОтветитьHi sir I want to some questions for php
Ответить