diff --git a/src/main/java/org/olat/modules/webFeed/manager/FeedFileStorge.java b/src/main/java/org/olat/modules/webFeed/manager/FeedFileStorge.java index e37dd831ffe14a8251032361838cb57562c09bbb..141407a080d7a3ef012861e53277673f8464c7f9 100644 --- a/src/main/java/org/olat/modules/webFeed/manager/FeedFileStorge.java +++ b/src/main/java/org/olat/modules/webFeed/manager/FeedFileStorge.java @@ -501,9 +501,8 @@ public class FeedFileStorge { if (media != null) { VFSContainer itemMediaContainer = getOrCreateItemMediaContainer(item); if (itemMediaContainer != null) { - VFSItem movedItem = media.moveUploadFileTo(itemMediaContainer); - saveFileName = Formatter.makeStringFilesystemSave(media.getUploadFileName()); - movedItem.rename(saveFileName); + media.moveUploadFileTo(itemMediaContainer); + saveFileName = media.getUploadFileName(); } } diff --git a/src/main/java/org/olat/modules/webFeed/ui/ItemFormController.java b/src/main/java/org/olat/modules/webFeed/ui/ItemFormController.java index 640ec97e787c99945097f69b39ede0f29f356ad3..eca16f32ee54d35164a6286a7e4cf56d2bfbe0a0 100644 --- a/src/main/java/org/olat/modules/webFeed/ui/ItemFormController.java +++ b/src/main/java/org/olat/modules/webFeed/ui/ItemFormController.java @@ -278,8 +278,7 @@ public abstract class ItemFormController extends FormBasicController { } } - return allOk ; -// return allOk & super.validateFormLogic(ureq); + return allOk & super.validateFormLogic(ureq); } private boolean validateFilename(String filename) {