Fixed filenames in download start with . what leads to invisible files
This commit is contained in:
parent
64244a8f7a
commit
deca0cbf5f
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user