CC-5888: Handle file deletion if the file is stored in the cloud

This commit is contained in:
drigato 2014-08-12 12:32:49 -04:00
parent 46228341b2
commit 879e776c8d
4 changed files with 49 additions and 23 deletions

View file

@ -387,10 +387,8 @@ SQL;
//try {
//Delete the physical file from either the local stor directory
//or from the cloud
$this->_file->deletePhysicalFile();
$filesize = $this->_file->deletePhysicalFile();
$filesize = $this->getFileSize();
//Update the user's disk usage
Application_Model_Preference::updateDiskUsage(-1 * $filesize);