This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
Guys, I am stuck at a very strange behavior: I am writing a servlet for handling file upload, using @MultipartConfig annotation for the servlet. I inspected that this statement:
always returns an empty collection, even I had pick up a file in the upload form. Also the form declares enctype="multipart/form-data" already.
It's strange because I worked before but suddenly it doesn't work anymore today.
My environment is Win7-64-bit, Tomcat 7-64bit, Java 7-64bit.
Guys, I found where is the problem. I change code from:
to
I don't know why the attribute "name" matters here. Anyway, that could help if someone experiences the same problem like me.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35237
7
posted
0
I think -not quite sure- that elements without a name attribute are not sent as part of the form submission. or maybe that's browser-dependent behavior.