Re: A problem with array parameter in form

2012-04-15 Thread sebb
On 15 April 2012 15:28, tomm tommm...@gmail.com wrote: There is a form, that contains an array parameter: input id=T7 maxlength=5 name=file[] type=file And I tried setting it with:        FileBody bin = new FileBody(fileToUpload);        reqEntity.addPart(file[], bin); // in case of

Re: A problem with array parameter in form

2012-04-15 Thread tommmmmm
What does a browser send when it uses that form? I was checking that right a moment ago. I used Live Http Headers with Firefox. It seemed that it was sending one empty copy of file[] before the normal file[]. So, right before FileBody bin = new FileBody(fileToUpload);