From bdc29eb4c6b2645c64f80c0bc0cfc5872abe1a66 Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 7 Nov 2003 15:07:37 +0000 Subject: [PATCH] validate upload by checkin if the file exists in the right place after the upload --- lib/documentmanagement/PhysicalDocumentManager.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/documentmanagement/PhysicalDocumentManager.inc b/lib/documentmanagement/PhysicalDocumentManager.inc index e6e6a23..055f898 100644 --- a/lib/documentmanagement/PhysicalDocumentManager.inc +++ b/lib/documentmanagement/PhysicalDocumentManager.inc @@ -53,7 +53,11 @@ class PhysicalDocumentManager { if (copy($sTmpFilePath, $sDocumentFileSystemPath)) { //remove the temporary file unlink($sTmpFilePath); - return true; + if (file_exists($sDocumentFileSystemPath)) { + return true; + } else { + return false; + } } else { $_SESSION["errorMessage"] = $lang_err_upload; return false; -- libgit2 0.21.4