SoundCloud download initial commit
This commit is contained in:
parent
d9117721b9
commit
04333aaa29
5 changed files with 82 additions and 2 deletions
|
@ -77,6 +77,19 @@ abstract class ThirdPartyController extends Zend_Controller_Action {
|
|||
$this->_service->upload($id);
|
||||
}
|
||||
|
||||
/**
|
||||
* Download the file with the given id from a third-party service
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @throws Zend_Controller_Response_Exception thrown if download fails for any reason
|
||||
*/
|
||||
public function downloadAction() {
|
||||
$request = $this->getRequest();
|
||||
$id = $request->getParam('id');
|
||||
$this->_service->download($id);
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete the file with the given id from a third-party service
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue