*/ class Mage_Adminhtml_Media_UploaderController extends Mage_Adminhtml_Controller_Action { public function uploadAction() { $this->getResponse()->setBody(Mage::helper('core')->jsonEncode($_REQUEST)); } public function indexAction() { $this->loadLayout(); $this->_addContent( $this->getLayout()->createBlock('adminhtml/media_uploader') ); $this->renderLayout(); } protected function _isAllowed() { return Mage::getSingleton('admin/session')->isAllowed('media'); } }