Commit bdc29eb4c6b2645c64f80c0bc0cfc5872abe1a66

Authored by michael
1 parent b52863dd

validate upload by checkin if the file exists in the right place after the upload


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2762 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/documentmanagement/PhysicalDocumentManager.inc
@@ -53,7 +53,11 @@ class PhysicalDocumentManager { @@ -53,7 +53,11 @@ class PhysicalDocumentManager {
53 if (copy($sTmpFilePath, $sDocumentFileSystemPath)) { 53 if (copy($sTmpFilePath, $sDocumentFileSystemPath)) {
54 //remove the temporary file 54 //remove the temporary file
55 unlink($sTmpFilePath); 55 unlink($sTmpFilePath);
56 - return true; 56 + if (file_exists($sDocumentFileSystemPath)) {
  57 + return true;
  58 + } else {
  59 + return false;
  60 + }
57 } else { 61 } else {
58 $_SESSION["errorMessage"] = $lang_err_upload; 62 $_SESSION["errorMessage"] = $lang_err_upload;
59 return false; 63 return false;