Im using Symfony3 and i have this route:
/**
* Recive a file
*
* @Route("/get/file", name="get-file")
* @Method("POST")
* @param Request $request
* @return Response
*/
public function getFileAction (Request $request) {
foreach($request->files as $key => $uploadedFile) {
$name = "westSummary".date("Y-m-d")."_".$key.".csv";
$file = $uploadedFile->move($destiny, $name); //Save the file in server, Where $destiny says.
}
return $this->json(array(
'status' => 'success',
'code' => 200,
'data' => $request,
));
}
And i create a Collection in Postman calling this route and that return the JSON object correctly:

But i cant test if the CSV arrives to the request object.
I have tryed this:

But the Response is the same in both cases
- How can i send a CSV to and API using POSTMAN?
