*/ 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('uploader/multiple') ); $this->renderLayout(); } protected function _isAllowed() { return Mage::getSingleton('admin/session')->isAllowed('media'); } }