Ensure DiskFileUpload#toString returns a string that uses the correct deleteOnExit (#11628)
Motivation: DiskFileUpload#toString should use the value provided when constructing DiskFileUpload and not the default one Modification: - DiskFileUpload#toString is modified to use the correct deleteOnExit value Result: DiskFileUpload#toString returns a string that uses the correct deleteOnExit
This commit is contained in:
parent
5c842dd89f
commit
d2aceea3b0
@ -138,8 +138,7 @@ public class DiskFileUpload extends AbstractDiskHttpData implements FileUpload {
|
|||||||
HttpHeaderNames.CONTENT_LENGTH + ": " + length() + "\r\n" +
|
HttpHeaderNames.CONTENT_LENGTH + ": " + length() + "\r\n" +
|
||||||
"Completed: " + isCompleted() +
|
"Completed: " + isCompleted() +
|
||||||
"\r\nIsInMemory: " + isInMemory() + "\r\nRealFile: " +
|
"\r\nIsInMemory: " + isInMemory() + "\r\nRealFile: " +
|
||||||
(file != null ? file.getAbsolutePath() : "null") + " DefaultDeleteAfter: " +
|
(file != null ? file.getAbsolutePath() : "null") + " DeleteAfter: " + deleteOnExit;
|
||||||
deleteOnExitTemporaryFile;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user