CC-5888: Handle file deletion if the file is stored in the cloud
This commit is contained in:
parent
9d0f564190
commit
8e714bcb64
5 changed files with 25 additions and 14 deletions
|
@ -307,7 +307,6 @@ class Rest_MediaController extends Zend_Rest_Controller
|
|||
if ($storedFile->existsOnDisk()) {
|
||||
$storedFile->delete(); //TODO: This checks your session permissions... Make it work without a session?
|
||||
}
|
||||
$file->delete();
|
||||
$this->getResponse()
|
||||
->setHttpResponseCode(204);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue