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:
parent
a410cb243b
commit
d9085e9e37
@ -58,7 +58,7 @@ public class MixedFileUpload implements FileUpload {
|
|||||||
definedSize);
|
definedSize);
|
||||||
if (((MemoryFileUpload) fileUpload).getChannelBuffer() != null) {
|
if (((MemoryFileUpload) fileUpload).getChannelBuffer() != null) {
|
||||||
diskFileUpload.addContent(((MemoryFileUpload) fileUpload)
|
diskFileUpload.addContent(((MemoryFileUpload) fileUpload)
|
||||||
.getChannelBuffer(), last);
|
.getChannelBuffer(), false);
|
||||||
}
|
}
|
||||||
fileUpload = diskFileUpload;
|
fileUpload = diskFileUpload;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user