diff --git a/workflow/engine/src/ProcessMaker/BusinessModel/FilesManager.php b/workflow/engine/src/ProcessMaker/BusinessModel/FilesManager.php index 3ea4b80e3..cbd6e5df3 100644 --- a/workflow/engine/src/ProcessMaker/BusinessModel/FilesManager.php +++ b/workflow/engine/src/ProcessMaker/BusinessModel/FilesManager.php @@ -468,7 +468,13 @@ class FilesManager if (file_exists($path) && !is_dir($path)) { unlink($path); - } + } else { + $path = PATH_DATA_PUBLIC.$sProcessUID.DIRECTORY_SEPARATOR.$sFile; + + if (file_exists($path) && !is_dir($path)) { + unlink($path); + } + } $rs = \ProcessFilesPeer::doDelete($criteria); } catch (Exception $e) {