Commit 59acf98975e2621c9f7834af18fbe6ffb227d76d

Authored by kevin_fourie
1 parent e7f0bcae

Reverted...

KTS-3240
"Add MD5 hash to assist with validation of repository storage"

Committed By: Conrad Vermeulen


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/branches/3.5.2c-Release-Branch@8458 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/documentmanagement/documentutil.inc.php
... ... @@ -727,14 +727,6 @@ class KTDocumentUtil {
727 727 return PEAR::raiseError(sprintf(_kt("Couldn't store contents: %s"), _kt('The uploaded file does not exist.')));
728 728 }
729 729  
730   - $md5hash = md5_file($sFilename);
731   - $content = $oDocument->_oDocumentContentVersion;
732   - $content->setStorageHash($md5hash);
733   - $content->update();
734   -
735   - if (empty($aOptions)) $aOptions = array();
736   - $aOptions['md5hash'] = $md5hash;
737   -
738 730 $sType = KTMime::getMimeTypeFromFile($sFilename);
739 731 $iMimeTypeId = KTMime::getMimeTypeID($sType, $oDocument->getFileName());
740 732 $oDocument->setMimeTypeId($iMimeTypeId);
... ...