después de actualizar a la nueva versión 1.9.3 . el cargador ya no funciona. dado a continuación error.i actualizo mi código pero sigue siendo el mismo.
cargador de var = nuevo
Uploader ({"uploaderConfig": {"chunkSize": 1073741824, "withCrede ...
a continuación está mi código
class Spacename_Modulename_Block_Adminhtml_Modulename_Edit_Tab_Images extends Mage_Adminhtml_Block_Widget {
protected $_uploaderType = 'uploader/multiple';
protected function _prepareForm() {
$data = $this->getRequest()->getPost();
$form = new Varien_Data_Form();
$form->setValues($data);
$this->setForm($form);
return parent::_prepareForm();
}
protected function _prepareLayout() {
$this->setChild('uploader', $this->getLayout()->createBlock($this->_uploaderType)
);
$this->getUploader()->getUploaderConfig()
->setFileParameterName('image')
->setTarget(Mage::getModel('adminhtml/url')->addSessionParam()->getUrl('*/*/image'));
$browseConfig = $this->getUploader()->getButtonConfig();
$browseConfig
->setAttributes(array(
'accept' => $browseConfig->getMimeTypesByExtensions('gif, png, jpeg, jpg')
));
return parent::_prepareLayout();
}
}
código js
<script type="text/javascript">
//<![CDATA[
var <?php echo $_block->getJsObjectName(); ?> = new Product.Gallery('<?php echo $_block->getHtmlId() ?>', <?php echo $_block->getImageTypesJson() ?>);
//]]>
</script>