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:
Violeta Georgieva 2021-08-31 09:21:56 +03:00 committed by Norman Maurer
parent c039f82483
commit 14102eb98c

View File

@ -141,8 +141,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