From 34fd636ed8584f777da6f4c7df57f2d1419cec15 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Fri, 15 Nov 2013 01:38:43 +0000 Subject: [PATCH] better file extension git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1542153 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/archiva/web/api/DefaultFileUploadService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/api/DefaultFileUploadService.java b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/api/DefaultFileUploadService.java index c13180385..7d94e112b 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/api/DefaultFileUploadService.java +++ b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/api/DefaultFileUploadService.java @@ -134,7 +134,7 @@ public class DefaultFileUploadService //Content-Disposition: form-data; name="files[]"; filename="org.apache.karaf.features.command-2.2.2.jar" String fileName = file.getContentDisposition().getParameter( "filename" ); - File tmpFile = File.createTempFile( "upload-artifact", "tmp" ); + File tmpFile = File.createTempFile( "upload-artifact", ".tmp" ); tmpFile.deleteOnExit(); IOUtils.copy( file.getDataHandler().getInputStream(), new FileOutputStream( tmpFile ) ); FileMetadata fileMetadata = new FileMetadata( fileName, tmpFile.length(), "theurl" ); -- 2.39.5