Commit 282f7b582c4e8d691f0e5cf4fc1e2002c9281387

Authored by Conrad Vermeulen
1 parent c719d1d2

"KTS-1994"

"KT webservice: add_document not working"
Fixed. Checkin must also cleanup....

Reviewed By: Kevin Fourie

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@6661 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 9 additions and 0 deletions
ktapi/ktapi.inc.php
... ... @@ -1024,6 +1024,15 @@ class KTAPI_Document extends KTAPI_FolderItem
1024 1024 return new PEAR_Error(KTAPI_ERROR_INTERNAL_ERROR);
1025 1025 }
1026 1026 DBUtil::commit();
  1027 +
  1028 + $tempfilename=addslashes($tempfilename);
  1029 + $sql = "DELETE FROM uploaded_files WHERE tempfilename='$tempfilename'";
  1030 + $result = DBUtil::runQuery($sql);
  1031 + if (PEAR::isError($result))
  1032 + {
  1033 + return $result;
  1034 + }
  1035 +
1027 1036 }
1028 1037  
1029 1038 /**
... ...