I am printing the contents of a simple file upload request in Laravel 5.6 and for some strange reason the file doesn't have any information attached to it.
public function uploadDocument(Request $request)
{
$file = $request->file('file');
dd($file);
}
It prints the following:
Which I found very strange as it has detected a file but doesn't have any file info. I have tried with multiple file types and get the same error.
I am using Laravel 5.6.23 and PHP version 7.1.9 on my local WAMP server
Anyone know why this is happening?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire