title: How to upload multiple images from a form for custom extension?
body: <p>I am working on magneto 1.7 version.In this I created a extension. Now, I need to upload multiple images from a form which I created.
  I have a browser button in a form Now I need to upload multiple images from that button in a single time.</p>
  
  <p>Can anyone help me?</p>
  
  <p>Below is my form:</p>
  
  <pre><code>protected function _prepareForm() {
  
      $form = new Varien_Data_Form();
      $this-&gt;setForm($form);
      $fieldset = $form-&gt;addFieldset('book_form', array('legend' =&gt; Mage::helper('test')-&gt;__('Book Content')));
  
      $fieldset-&gt;addField('title', 'text', array(
          'label' =&gt; Mage::helper('test')-&gt;__('Title'),
          'class' =&gt; 'required-entry',
          'required' =&gt; true,
          'name' =&gt; 'title[]',
      ));
      $categoryArray = Mage::getSingleton('test/category')-&gt;getOptionArray();
      $fieldset-&gt;addField('category_id', 'select', array(
          'label' =&gt; Mage::helper('test')-&gt;__('Category'),
          'required' =&gt; true,
          'class' =&gt; 'required-entry',
          'name' =&gt; 'category_id[]',
          'values' =&gt; $categoryArray,
      ));
  
      **$fieldset-&gt;addField('image', 'file', array(
          'label' =&gt; Mage::helper('test')-&gt;__('Image'),
          'name' =&gt; 'image[]',
          'multiple' =&gt; 'multiple',
          'mulitple' =&gt; true,
      ));**
  
      $fieldset-&gt;addField('priority', 'text', array(
          'label' =&gt; Mage::helper('lookbook')-&gt;__('Order of Display'),
          'name' =&gt; 'priority[]',
      ));
      $fieldset-&gt;addField('hiddenData', 'hidden', array(
          'class' =&gt; Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK) . '_' . Mage::registry('book_data')-&gt;getId(),
      ));
  
      $statusArray = Mage::getSingleton('lookbook/status')-&gt;getOptionArray();
      $fieldset-&gt;addField('publish', 'select', array(
          'label' =&gt; Mage::helper('lookbook')-&gt;__('Status'),
          'name' =&gt; 'publish[]',
          'values' =&gt; $statusArray,
      ));
  
      if (Mage::getSingleton('adminhtml/session')-&gt;getBookData()) {
          $form-&gt;setValues(Mage::getSingleton('adminhtml/session')-&gt;getBookData());
          Mage::getSingleton('adminhtml/session')-&gt;setBookData(null);
      } elseif (Mage::registry('book_data')) {
          $form-&gt;setValues(Mage::registry('book_data')-&gt;getData());
      }
  
  
      return parent::_prepareForm();
  }
  </code></pre>