Using $_FILES can get information, but I want to use laravel's $request to get the information and process it. Does anyone have a solution?
Print $request->headers and see what the Content-Type sent by ajax is. Generally, the Content-Type is wrong.
$request->headers
Content-Type
If the file is cross-domain, the file may not be received. I don’t know what your specific situation is.
Print
$request->headers
and see what theContent-Type
sent by ajax is. Generally, theContent-Type
is wrong.If the file is cross-domain, the file may not be received. I don’t know what your specific situation is.