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"