jFileUploader - File uploading library for Java based web server
jFileUploader SourceForge.net Logo
Home | License | Download | Changelog | AuthorĀ“s Home

Modifications in 0.2:

    1. The method arguments of processForm method are now HttpServletRequest object and the absolute path of the directory to upload files to. This has removed the necessity of passing the application name and the magic-string "uploads" Not to mention the cleanup of code.

    2. Duplicate form names are now supported. If the html form has multiple elements with the same name, e.g textboxes in a table, checkboxes etc, then map.get(name) will return an ArrayList with the corresponding component data type, i.e String for normal form elements and File for input type file.

    3. A new exception class [UploadException] has been created. It isn't much useful now but plan to add errorcodes later so that exceptions with specific error codes may be ignored.

Modifications in 0.21

    1. Respecting the OOP model, the method processForm is no more static. Users will now have to do a MultipartFormProcessor processor = new MulitpartFormProcessor(); processor.processForm(request, new File("/my/upload/path"));

    2. The pre-upload check now throws an exception with a more specific error message.

Modifications in 0.3

    1. Changed according to the updated UploadException. Now throwing exception with an error code

Modifications in 0.31

    1. Changed the return type of method decodeDisposition(). This method now returns a string array of size two populated with name and filename, null if filename is absent from the disposition string