CC-5888: Handle file deletion if the file is stored in the cloud
This commit is contained in:
parent
46228341b2
commit
879e776c8d
4 changed files with 49 additions and 23 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue