Anonymous | Login | Signup for a new account | 12-17-2024 08:38 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0002578 | [Resin] | major | always | 04-08-08 00:54 | 04-28-08 10:07 | ||||
Reporter | waiwong | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 3.1.5 | ||||||
Summary | 0002578: multipart/form-data error for multiple upload files | ||||||||
Description |
In the form, the following piece of code is used: <form action='test.jsp' enctype='multipart/form-data' method='post'> <input type='File' name='abc' size='50'> <input type='File' name='abc' size='50'> <input type='File' name='abc' size='50'> <input type='submit' value='submit'> </form> In the handler test.jsp, the following piece of code is used: <% String []tmpFilePath = request.getParameterValues("abc"); String []fName = request.getParameterValues("abc.filename");// specific to resin out.println(" tmpFilePath.length is " + tmpFilePath.length); out.println(" tmpFilePath is " + tmpFilePath[0]); out.println(" fName.length is " + fName.length); out.println(" fName is " + fName[0]); %> The output when using 3.1.3 and 3.1.5, no matter how many files are uploaded, is somthing like: tmpFilePath.length is 1 tmpFilePath is /....../WEB-INF/work/form/form781049843.tmp fName.length is 1 fName is This is wrong. In 3.0.22, the output is: tmpFilePath.length is 3 tmpFilePath is /....../WEB-INF/work/form/form744259715.tmp fName.length is 3 fName is D:\Desktop\tmp pic\TFR10CE.gif This is correct. |
||||||||
Additional Information | Wrong in 3.1.x, correct in 3.0.22 | ||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |