Fix in addContent when switching from MemoryAttribute if it is done when last buffer added, in order to not close immediately the underlying file before adding the last buffer.

This commit is contained in:
Frédéric Brégier 2012-04-30 12:33:10 +03:00
parent a410cb243b
commit d9085e9e37

View File

@ -58,7 +58,7 @@ public class MixedFileUpload implements FileUpload {
definedSize);
if (((MemoryFileUpload) fileUpload).getChannelBuffer() != null) {
diskFileUpload.addContent(((MemoryFileUpload) fileUpload)
.getChannelBuffer(), last);
.getChannelBuffer(), false);
}
fileUpload = diskFileUpload;
}