Release Notes

Release History

VersionDateDescription
1.32013-03-27maintenance release, JDK1.5 update
1.2.22010-07-29 
1.2.12008-01-18 
1.22007-02-13 
1.1.12006-06-08Bugfix release
1.12005-12-24Portlet support, substantial refactoring and numerous bug fixes

Release 1.3 - 2013-03-27

TypeChangesBy

fix

SECURITY - CVE-2013-0248. Update the Javadoc and documentation to make it clear that setting a repository is required for a secure configuration if there are local, untrusted users.markt

update

Update the project tree dirs according to default Maven conventions Fixes FILEUPLOAD-216.simonetripodi

update

drop JDK1.3 support and update to Java5 Fixes FILEUPLOAD-217.simonetripodi

update

Update version in POM Fixes FILEUPLOAD-218.simonetripodi

update

upgrade tests to JUnit 4 Fixes FILEUPLOAD-219.simonetripodi

update

replace package.html with package-info.java Fixes FILEUPLOAD-220.simonetripodi

update

FileItemHeadersImpl can now use LinkedHashMap Fixes FILEUPLOAD-221.simonetripodi

update

Mark @deprecated classes/methods with @Deprecated annotation Fixes FILEUPLOAD-222.simonetripodi

fix

Base64Decoder doesn't correctly implement RFC 4648 Fixes FILEUPLOAD-233. Thanks to Simone Tripodi.sebb

fix

"Stream ended unexpectedly" when posting from a Flash client Fixes FILEUPLOAD-143. Thanks to Luke Scott.jochen

fix

Manifest for OSGi has invalid syntax Fixes FILEUPLOAD-173. Thanks to Bjorn Harvold.simonetripodi

fix

commons-io dependency does not get loaded by maven if only dependency to commons-fileupload is specified Fixes FILEUPLOAD-183. Thanks to Roman Arkadijovych Muntyanu.simonetripodi

fix

http://commons.apache.org/fileupload/index.html is out of date Fixes FILEUPLOAD-185. Thanks to Sebb.simonetripodi

fix

http://commons.apache.org/fileupload/index.html should not mention nightly builds Fixes FILEUPLOAD-186. Thanks to Sebb.simonetripodi

fix

DiskFileItemFactory use of FileCleaningTracker is documented or coded wrong - proposal submitted by Jan Novotný Fixes FILEUPLOAD-189. Thanks to Gregor K.simonetripodi

fix

Error reading the file size larger than 2 gb - pull request from Gergely Fixes FILEUPLOAD-195. Thanks to Juliano Alves.simonetripodi

fix

ServletFileUpload isMultipartContent method does not support HTTP PUT - thanks Roy T. Fielding and Jochen Wiedmann Fixes FILEUPLOAD-197. Thanks to David Wolverton.simonetripodi

fix

Uploads have unexpected results for files with non-ASCII names - support RFC2047 - thanks Thomas Neidhart Fixes FILEUPLOAD-199. Thanks to Mark Thomas.simonetripodi

fix

Exceptions resulting from upload size limitations (fileSizeMax, sizeMax) are now correctly propagated to the caller (these could be encountered formerly as MalformedStreamException: "Stream ended unexpectedly"). Fixes FILEUPLOAD-202. Thanks to tina.tn

fix

FileItem.getHeaders() returns always null. Fixes FILEUPLOAD-204. Thanks to Hakju Oh.jochen

fix

The sizeMax parameter within FileUpload is now correctly enforced if no content length header is provided. Fixes FILEUPLOAD-212. Thanks to Damian Kolasa.tn

fix

ServletFileUpload only accepts POST requests Fixes FILEUPLOAD-214. Thanks to Matthew Runo.simonetripodi

fix

(Servlet|Portlet)RequestContext#contentLength() must return request.getContentLength() if Content-length header is not available Fixes FILEUPLOAD-228. Thanks to Thomas Neidhart.simonetripodi

fix

toLowerCase() is Locale-dependent; should use toLowerCase(Locale.ENGLISH) instead Fixes FILEUPLOAD-229. Thanks to seb.simonetripodi

fix

There are no unit tests for the new utils.mime classes Fixes FILEUPLOAD-229. Thanks to seb.sebb,simonetripodi

add

Documentation: add simple HTML form example to fileupload user guide Fixes FILEUPLOAD-182. Thanks to Chris Lott.simonetripodi

add

enhance file read/write performance - patch provided by frank Fixes FILEUPLOAD-207. Thanks to frank.simonetripodi

add

Add Support for Generic Types Fixes FILEUPLOAD-209. Thanks to Fernando Ribeiro.simonetripodi

add

Process HTTP Requests Into Maps Fixes FILEUPLOAD-210. Thanks to Fernando Ribeiro.simonetripodi

update

Update commons-io dependency to latest version that supports JDK1.5 Fixes FILEUPLOAD-223.simonetripodi

update

Avoid string concatenations while parsing headers, use buffers instead Fixes FILEUPLOAD-224.simonetripodi

update

Replace java.rmi.server.UID() with java.util.UUID Fixes FILEUPLOAD-225.simonetripodi

update

DiskFileItem.counter could be converted to AtomicInteger (or AtomicLong?) Fixes FILEUPLOAD-226.sebb

update

Private immutable fields which could be final Fixes FILEUPLOAD-227.sebb

update

Update to JDK 1.5 and bump IO dependency to 2.0.1 Fixes FILEUPLOAD-201.simonetripodi

update

version 1.3 improvement tasks Fixes FILEUPLOAD-215.simonetripodi

Release 1.2.2 - 2010-07-29

TypeChangesBy

fix

Added a check for file names containing a NULL characters. Such file names are now triggering an InvalidFileNameException since the file name cannot be used as provided to create the file since it will be truncated at the NUL character on most (all?) operating systems. E.g. a file name like "test.foo0.bar" would result in "test.foo" being created. Thanks to Daniel Fabian.jochen

fix

Temporary files have not been deleted, if an error occurred in FileUploadBase.parseRequest(); Fixes FILEUPLOAD-160. Thanks to Stepan Koltsov.jochen

fix

Fixed example in MultipartStream Javadocs. Fixes FILEUPLOAD-158. Thanks to Stepan Koltsov.jochen

fix

Ensured, that the ProgressListener is called for all items. Fixes FILEUPLOAD-157. Thanks to Paul Spurr.jochen

fix

Made the ProgressNotifier public. Fixes FILEUPLOAD-156.jochen

fix

Multiple documentation fixes. Fixes FILEUPLOAD-155. Thanks to Jörg Heinicke.jochen

fix

Fixed the error message for FileSizeLimitExceededException from "too many characters" to "too many bytes". Fixes FILEUPLOAD-152. Thanks to Duzakropka.jochen

add

A FileSizeLimitExceededException does now contain the file and field name of the item, which caused the problem. Fixes FILEUPLOAD-154.jochen

fix

The FileItemHeader stuff hasn't been actually working. Fixes FILEUPLOAD-130. Thanks to Guillaume Cottenceau.jochen

Release 1.2.1 - 2008-01-18

TypeChangesBy

fix

Upgrade to commons-io-1.4-SNAPSHOT, in order to use the new FileCleaningTracker and fix issues with FileCleaner.jochen

fix

Made the MockHttpServletRequest comply to the servlet 2.4 specification by applying http://www.sourcelabs.com/dashboards/sash-1.2/patches/commons-fileupload-1.1-1/SUP-520.diff Fixes FILEUPLOAD-129.jochen

add

Added support for accessing the file item headers. Fixes FILEUPLOAD-130. Thanks to Michael Macaluso.jochen

fix

A MalformedStreamException is now thrown, if the size of an items headers exceeds HEADER_PART_SIZE_MAX; Fixes FILEUPLOAD-116. Thanks to Amichai Rothman.jochen

fix

DiskFileItem.toString() could throw an NPE. Fixes FILEUPLOAD-134. Thanks to Thomas Vandahl.jochen

fix

Short files could cause an unexpected end of the item stream. Fixes FILEUPLOAD-135. Thanks to Alexander Sova.jochen

fix

A FileSizeLimitExceededException was deferred until the complete file has been uploaded. Additionally, the FileSizeLimitException is now thrown immediately, if the attachments headers contain a content-length value, which exceeds the configured limit. Fixes FILEUPLOAD-145.jochen

fix

Fixed a classpath problem when building with Sun JDK 1.3.1 and Ant. Fixes FILEUPLOAD-153. Thanks to Gary Gregory.jochen

Release 1.2 - 2007-02-13

TypeChangesBy

fix

Made Streams.asString static. Thanks to Aaron Freeman.jochen

update

Eliminated duplicate code. Fixes FILEUPLOAD-109.jochen

add

Added a streaming API. Fixes FILEUPLOAD-112.jochen

fix

Eliminated the necessity of a content-length header. Fixes FILEUPLOAD-93.jochen

fix

Eliminated the limitation of a maximum size for a single header line. (The total size of all headers is already limited, so there's no need for another limit.) Fixes FILEUPLOAD-108. Thanks to Amichai Rothman.jochen

add

Added the ProgressListener, which allows to implement a progress bar. Fixes FILEUPLOAD-87.jochen

add

Added support for header continuation lines. Fixes FILEUPLOAD-111. Thanks to Amichai Rothman.jochen

add

It is now possible to limit the actual file size and not the request size. Fixes FILEUPLOAD-88. Thanks to Andrey Aristarkhov.jochen

add

Added the FileCleanerCleanup as an example for how to close down the FileCleaner's reaper thread nicely. Fixes FILEUPLOAD-120. Thanks to Henry Yandell.jochen

fix

A descriptive NPE is now thrown, if the FileItemFactory has not been set. Fixes FILEUPLOAD-123.jochen

Release 1.1.1 - 2006-06-08

TypeChangesBy

fix

Cache disk file item size when it is moved to a new location. Fixes FILEUPLOAD-20.martinc

fix

File names were being inadvertently converted to lower case. Fixes FILEUPLOAD-30.martinc

Release 1.1 - 2005-12-24

TypeChangesBy

update

Updates for FileUpload 1.1-RC1.martinc

add

Added release notes for FileUpload 1.1.martinc

update

Update the User Guide to document the "right" way of using FileUpload 1.1, rather than the older, and thus deprecated, ways that are compatible with FileUpload 1.0.martinc

add

Add this change log, including all changes since the Commons FileUpload 1.0 release.martinc

update

Update Commons IO dependency to version 1.1.martinc

add

Add custom PMD configuration.martinc

update

Make inner exception classes static, which they should have been all along.martinc

fix

Fix Checkstyle warnings.martinc

fix

Remove Javadoc warnings. Fixes FILEUPLOAD-29. Thanks to Rahul Akolkar.martinc

update

Build updates:martinc