diff --git a/src/Services/Attachments/AttachmentSubmitHandler.php b/src/Services/Attachments/AttachmentSubmitHandler.php index d4867eaf..07d0b87c 100644 --- a/src/Services/Attachments/AttachmentSubmitHandler.php +++ b/src/Services/Attachments/AttachmentSubmitHandler.php @@ -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