diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/multipart/MultiPartParserDefinition.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/multipart/MultiPartParserDefinition.java index ec2fd230dbb0b..ec1e4fa875cfe 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/multipart/MultiPartParserDefinition.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/core/multipart/MultiPartParserDefinition.java @@ -237,9 +237,9 @@ public void beginPart(final CaseInsensitiveMap headers) { if (fileName != null && fileSizeThreshold == 0) { try { if (tempFileLocation != null) { - file = Files.createTempFile(tempFileLocation, "undertow", "upload"); + file = Files.createTempFile(tempFileLocation, "resteasy-reactive", "upload"); } else { - file = Files.createTempFile("undertow", "upload"); + file = Files.createTempFile("resteasy-reactive", "upload"); } createdFiles.add(file); fileChannel = FileChannel.open(file, StandardOpenOption.READ, StandardOpenOption.WRITE); @@ -266,9 +266,9 @@ public void data(final ByteBuffer buffer) throws IOException { if (file == null && fileName != null && fileSizeThreshold < this.currentFileSize) { try { if (tempFileLocation != null) { - file = Files.createTempFile(tempFileLocation, "undertow", "upload"); + file = Files.createTempFile(tempFileLocation, "resteasy-reactive", "upload"); } else { - file = Files.createTempFile("undertow", "upload"); + file = Files.createTempFile("resteasy-reactive", "upload"); } createdFiles.add(file); @@ -321,7 +321,7 @@ public void endPart() { } } - data.add(currentName, new String(contentBytes.toByteArray(), charset), charset, headers); + data.add(currentName, contentBytes.toString(charset), charset, headers); } catch (UnsupportedEncodingException e) { throw new RuntimeException(e); }