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.
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.
If you have time or memory related problems, have you looked at the streaming API of commons file upload?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With