2

I've user Symfony for the my application service. One service call send file array (multiple files) in post. how can i get that?

because when I use below code and dump $uploadedFiles is empty. when send single image, it work, any help?

public function createAction(Request $request) {
    $uploadedFiles = $request->files;    
}

this not about multiple file upload as Multiple file upload with Symfony2 question. This is about how to get multiple files (file array) in Request

3
  • Possible duplicate of Multiple file upload with Symfony2 Commented Oct 27, 2015 at 9:58
  • 1
    This is about how to get multiple files (file array) in Request (API request) Commented Oct 27, 2015 at 10:08
  • 1
    i would image the issue is on the sending part, perhaps to do with the Content-Type header ? Commented Oct 28, 2015 at 7:00

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.