@vinubangs Use different driver for that
Documentation: https://laravel.com/docs/7.x/filesystem#driver-prerequisites
I am working on xampp localhost. I have a laravel setup. and I am uploading a file from my project to another laravel project.
public function cvupload(Request $request)
{
$this->validate($request,[
'resume' => 'required|mimes:doc,pdf,docx'
],
[
'required' => 'This field is required',
'mimes' => 'Allowed only doc,pdf,docx',
]);
$image = $request->file('resume');
$name = time().'.'.$image->getClientOriginalExtension();
$destinationPath = 'http://example.com/adminapi/app/storage/uploads/';
$image->move($destinationPath, $name);
$resume_with_path = $destinationPath.$name;
}
But It gives error:
Symfony\Component\HttpFoundation\File\Exception\FileException Unable to create the directory.
Please or to participate in this conversation.