Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache commons file upload alternatives

Tags:

I was wondering what Java File Upload API's StackOverflow users have used in the past and would recommend using? A quick Google Search seems to indicate that the most commonly used API is Apache Commons File Upload (currently at 1.2.1), however, we've had some issues regarding the use of this library with larger files that we've been unable to solve.

Has anyone found a reliable file upload library (aside from the Apache Commons one) that they'd recommend?

EDIT: The Streaming API is not an option as it uses the same underlying class that is causing our issue.

EDIT2: Our original issue appears to be some kind of problem with load balancing. Our clone instance uses Apache/AJP1.3 and the live instance uses Zeus XTM. Bypassing the load balancer by using the server IP rather than host name seems to cause the problem to disappear.

EDIT3: This turned out to be an issue with the clients firewall. It appears that they were.. er.. not being entirely truthful when they said that the knew definitely this was not a Firewall issue.

like image 814
Jon Avatar asked Aug 06 '10 09:08

Jon


People also ask

What is ServletFileUpload in Java?

public class ServletFileUpload extends FileUpload. High level API for processing file uploads. This class handles multiple files per single HTML widget, sent using multipart/mixed encoding type, as specified by RFC 1867.


1 Answers

If you have time or memory related problems, have you looked at the streaming API of commons file upload?

like image 53
naikus Avatar answered Sep 28 '22 08:09

naikus