Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logger shows only the first file in a request with more than one file #9

Open
stuzzo opened this issue Jul 22, 2015 · 0 comments
Open

Comments

@stuzzo
Copy link

stuzzo commented Jul 22, 2015

Hi,
I'm doing a request with one text field (named JSON) and two files (named file and icon).

This is the log output:

curl 'http://test.local/app_dev.php/test/post' \   -A 'Guzzle/5.3.0 curl/7.22.0 PHP/5.5.27-1+deb.sury.org~precise+1' \   -H 'Content-Type: multipart/form-data' -X POST \   -d '--55af920568ab9 Content-Disposition: form-data; name="JSON"  {"title":"Title","filename":"video.mp4","startdate":"22-07-2015","starttime":"02:49","enddate":"31-12-2016","endtime":"23:59","https":"yes"} --55af920568ab9 Content-Disposition: form-data; name="icon"; filename="fok_original.jpg" Content-Type: image/jpeg  '

I added a var_dump on controller and $request->request->all() shows me the JSON field and $request->files has two elements, file and icon.

Anyone can replicate this?

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant