Commit bdc29eb4c6b2645c64f80c0bc0cfc5872abe1a66
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
Showing
1 changed file
with
5 additions
and
1 deletions
lib/documentmanagement/PhysicalDocumentManager.inc
| ... | ... | @@ -53,7 +53,11 @@ class PhysicalDocumentManager { |
| 53 | 53 | if (copy($sTmpFilePath, $sDocumentFileSystemPath)) { |
| 54 | 54 | //remove the temporary file |
| 55 | 55 | unlink($sTmpFilePath); |
| 56 | - return true; | |
| 56 | + if (file_exists($sDocumentFileSystemPath)) { | |
| 57 | + return true; | |
| 58 | + } else { | |
| 59 | + return false; | |
| 60 | + } | |
| 57 | 61 | } else { |
| 58 | 62 | $_SESSION["errorMessage"] = $lang_err_upload; |
| 59 | 63 | return false; | ... | ... |