The following code works perfectly fine with Tomcat 5.5 in Linux

DiskFileItemFactory factory = new DiskFileItemFactory();
factory.setSizeThreshold(1000240);
RestletFileUpload upload = new RestletFileUpload(factory);
List items = upload.parseRequest(getRequest());

In Linux it gives me the following values of item:

items :::[name=null,
StoreLocation="some value"
size=28bytes, isFormField=false, FieldName=xxx.txt]

In Windows the same code does not work. My environment is the same Tomcat 5.5

items :::[]

List items = upload.parseRequest(getRequest()); is not working properly i guess

Any help will be appreciated?

Regards
Surjendu

Reply via email to