Level 73
Can you post the full form?
Are you maybe missing the enctype="multipart/form-data" attribute on your form?
4 likes
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
i am using laravel 5.8 i want to upload file
and i get the eror call to a member function on null
here is part of my view code
<input type="file" name="video" id="video" class="form-control-file">
<button class="btn btn-primary" type="submit">upload</button>
and my cntroller
public function Upload_Video(Request $request){
$path=$request->file('video')->store('/','public');
if($path){
return back()->with('upload_success','file uploaded successfully');
}
}
any one who help me
Can you post the full form?
Are you maybe missing the enctype="multipart/form-data" attribute on your form?
Please or to participate in this conversation.