I'm trying to upload a file to a server using JSP. I have tried with jspsmart, io stream, jakarta commons fileupload and the one from oreilly. The 4 of them work in my testing server but none of them works in the live site. After looking for what was going on, I realized that
-> Using io Stream to store the file the following line is returning empty or null:
DataInputStream in = new DataInputStream(request.getInputStream());
So it can't read the file to store it in the server.
-> With the Jakarta Commons FileUpload, the following line does not return anything:
List fileItems = fu.parseRequest(request);
So I can't iterate it to get the files from the request.
So I guess is something about the request. But I don't have a clue why does it happens or what could I use instead of the request to get the file I want to upload.
As more information, I don't know if relevant, this is what the request.getInputStream stores:
The server is under Tomcat 5 and Linux.
Thanks for your help.