Automatically exported from code.google.com/p/java-large-file-uploader
Latest stable version : 1.1.8
The goal of this project is to provide an easy way to upload large files directly from a browser without applets or external components.
Thanks to the new html5 features including reading and slicing files, it is now possible to proceed in sending very large files over http.
This library cuts the file in slices and stream them to the server. Each slice is validated using a js and java crc32 verification.
You can see exactly how the flow is processed here
The unfinished files can stay on the server for an amount of configurable days before an automatic removal.
The information related to this upload are stored on the filesystem of the server.
The writing of the files on the filesystem is optimized using servlet 3.0 asynchronous features and a rate limiter algorithm which allows the user to define a custom upload rate for each file individually. A maximum upload rate for all the uploads of a client and a maximum overall upload rate can be configured.
1.0
1.1
This project is separated in two parts:
Written in javascript, it sends a file splitted in chunks to a java web server and provides methods to be able to monitor the progress.
The javascript object JavaLargeFileUploader can manage multiple concurrent uploads.
The server-side part is a Java ARchive that shall be integrated in a Web application ARchive. Using web fragments, it exposes a servlet which handles the upload.
See Setup.
The client API is managed using an instance of JavaLargeFileUploader on the javascript side. Please consult its documentation to know more about how to interact with the API.
You can download the last war of the demo here to test it. (Note that your server has to support servlet 3.0)