Fixed deleting failed uploads
This commit is contained in:
parent
8a6ee8ad14
commit
1f6f880dad
2 changed files with 6 additions and 1 deletions
|
@ -398,7 +398,9 @@ SQL;
|
|||
|
||||
//Delete the physical file from either the local stor directory
|
||||
//or from the cloud
|
||||
$this->_file->deletePhysicalFile();
|
||||
if ($this->_file->getDbImportStatus() == CcFiles::IMPORT_STATUS_SUCCESS) {
|
||||
$this->_file->deletePhysicalFile();
|
||||
}
|
||||
|
||||
//Update the user's disk usage
|
||||
Application_Model_Preference::updateDiskUsage(-1 * $filesize);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue