I'm using laravel 5.7
for my new project. I tried to read a input file without storing the file on project folder. For that i need to know the real path of the input file from the temp to read the file. Unfortunatelly i always get the path of the public folder : "D:\wamp64\www\import-project\public"
, not the temporary path of the file so i can't read the file and here is my code :
public function importFile(Request request)
{
$path = $request->file('file');
dd($path->getRealPath());
}
Hope anyone here can help me to solve this problem. Thank You
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire