Here, I would like to upload image in admin panel grid form in magento. I create images upload in admin panel grid form. Here I attached my sample image upload coding.
[...]
$fieldset->addField('collar_image', 'image', array(
'name' => 'collar_image',
'label' => Mage::helper('measurement_setter')->__('collar Image'),
'title' => Mage::helper('measurement_setter')->__('collar Image'),
'required' => true,
'disabled' => $isElementDisabled
));
[...]
When i save that image data into MYSQL database it results array
.And i get response in that save script it results Array
.
public function saveAction()
{
$redirectPath = '*/*';
$redirectParams = array();
// check if data sent
$data = $this->getRequest()->getPost();
echo "<pre>";
print_r($data);exit;
if ($data) {
$data = $this->_filterPostData($data);
// init model and set data
/* @var $model Magentostudy_News_Model_Item */
$model = Mage::getModel('measurement_setter/setter');
[...]
How to check image values whether correct or not? And How to get check image values?