25 June 2012

Multipart File Upload with WLS 12c

Multipart File Upload with WLS 12c

Just a word for anyone out there looking to use the Servlet 3.0 file upload feature with WLS 12c.

If you use the annotation approach on the Servlet class, it works perfectly well

However if you use the web.xml file to specify or override specific values using the multipart-config settings, then we have a small issue when we parse and apply those settings to the underling configuration bean.  This results in the maxFileSize value always being set to a value of 0.

Ultimately this manifests itself as a problem when uploading any file since the file size will always exceed the maximum allowed size of 0. 

The good news is there's a fix already available for it -- if you run into it, look for the patch for bug#14915431 or SmartUpdate patch 8EC8.

No comments: