SAAS-504: Store provider in db
This commit is contained in:
parent
e59cd11370
commit
6cb993cc80
7 changed files with 123 additions and 28 deletions
|
@ -180,7 +180,7 @@ class Rest_MediaController extends Zend_Rest_Controller
|
|||
|
||||
$file = CcFilesQuery::create()->findPk($id);
|
||||
// Since we check for this value when deleting files, set it first
|
||||
$file->setDbDirectory(self::MUSIC_DIRS_STOR_PK);
|
||||
//$file->setDbDirectory(self::MUSIC_DIRS_STOR_PK);
|
||||
|
||||
$requestData = json_decode($this->getRequest()->getRawBody(), true);
|
||||
$whiteList = $this->removeBlacklistedFieldsFromRequestData($requestData);
|
||||
|
@ -203,6 +203,7 @@ class Rest_MediaController extends Zend_Rest_Controller
|
|||
return;
|
||||
}
|
||||
$cloudFile = new CloudFile();
|
||||
$cloudFile->setStorageBackend($requestData["storage_backend"]);
|
||||
$cloudFile->setResourceId($requestData["resource_id"]);
|
||||
$cloudFile->setCcFiles($file);
|
||||
$cloudFile->save();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue