Hi all, I'm using FileItem's write method to write a file to disk. Oddly, the method will write the file to disk, but then throw an exception. I'm catching the exception and logging it; however, the exception message is "null." Anyone know what could be the problem and how to resolve it? Below is the code. Thanks.
...
...
if (!fileItem.isFormField()) {
try {
fileItem.write(uploadedFile);
} catch (Exception e) {
logger.error("File upload failed. " + e.getMessage());
}
}
-Nate
