Hi frnds, I am using commons-httpclient 3.1 and using multipartpostmethod (it was used before so has not been changed).. I am trying to upload large number of files (around 300 with very small size -- all around 1kb)..
The problem i am facing is that i have a String parameter which will store number of files being uploaded in comma separated string.. 1,2,3,... etc I am able to upload around 250 files with this.. but when i try to upload 300 files the string value which will be accessed from the request.. with the help of... List fileItems = upload.parseRequest(req); Iterator i = fileItems.iterator() FileItem fi = (FileIItem) i.next(); and then String formFieldName = fi.getFieldName(); for getting name of parameter and String formFieldValue = fi.getString(); for getting the value.... The value which i get for the long string parameter 1,2,3,4,5.. upto 300 is not got properly and there are garbage values in that... and that gives me null pointer exception..... I tried the same string with pure http multipartpostrequest from a JSP and it the same code above gets the value correctly.. so it seems that the httpclient multipartpost method may not be sending proper string or i dnt kno if theres something else..... wat can be done to get the value of the long string correctly by parseRequest on server?? thanks... Nitya