Fixed filenames in download start with . what leads to invisible files

This commit is contained in:
Dominique Eifländer 2021-10-01 15:47:28 +02:00
parent 64244a8f7a
commit deca0cbf5f

View File

@ -149,7 +149,7 @@ public class DownloadPreparationService {
private String removeExtension(String fileName) {
var index = fileName.lastIndexOf(".");
if (index > 0) {
return fileName.substring(index);
return fileName.substring(0, index);
} else {
return fileName;
}