I have the following code in my controller:
public function upload(Request $request)
{
$files = $request->file(\'uploads\');
if(!em
The issue was that I was explicitly specifying the Content-Type
in postman.
According to one of the answers from this post:
There is no need to add a content-type header manually. You are overriding the value set by Postman. Just select form-data in POST request and send your request to see if it works.