Fixed an exception when moving an attachment to private folder.

This commit is contained in:
Jan Böhmer 2020-02-10 22:46:05 +01:00
parent ab777bc264
commit 15957203af

View file

@ -232,6 +232,8 @@ class AttachmentSubmitHandler
//Move file to new directory
$fs = new Filesystem();
//Ensure that the new path exists
$fs->mkdir(dirname($new_path));
$fs->rename($old_path, $new_path);
//Save info to attachment entity