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.
If the file is cross-domain, the file may not be received. I don’t know what your specific situation is.