From a9f0f601f340b6f6c11316f3882a4558129d0dbb Mon Sep 17 00:00:00 2001 From: Lucas Amiaud Date: Thu, 14 Dec 2023 12:42:55 +0100 Subject: [PATCH] updating plume file version --- pom.xml | 2 +- src/main/java/com/coreoz/webservices/api/file/FileUploadWs.java | 2 ++ src/main/resources/application.conf | 2 -- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 137a10d..a763709 100644 --- a/pom.xml +++ b/pom.xml @@ -15,7 +15,7 @@ 17 4.3.4 - 3.0.1 + 3.1.0 diff --git a/src/main/java/com/coreoz/webservices/api/file/FileUploadWs.java b/src/main/java/com/coreoz/webservices/api/file/FileUploadWs.java index ba00f54..0399c6c 100644 --- a/src/main/java/com/coreoz/webservices/api/file/FileUploadWs.java +++ b/src/main/java/com/coreoz/webservices/api/file/FileUploadWs.java @@ -60,6 +60,7 @@ public Response uploadPicture( .fileNameAllowEmpty() .fileNameMaxLength(255) .fileImage() + .keepOriginalFileName() .finish(); return Response.ok( this.fileUploadWebJerseyService.add( @@ -97,6 +98,7 @@ public Response uploadExcelFile( // "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", // "application/vnd.ms-excel" //)) + .sanitizeFileName() .finish(); return Response.ok( this.fileUploadWebJerseyService.add( diff --git a/src/main/resources/application.conf b/src/main/resources/application.conf index 884c1d7..5cda999 100644 --- a/src/main/resources/application.conf +++ b/src/main/resources/application.conf @@ -26,5 +26,3 @@ db.hikari.minimumIdle=1 db.hikari.maximumPoolSize=4 db.hikari.leakDetectionThreshold=30000 db.hikari.idleTimeout=20000 - -file.keep-original-name-on-download="true"