title: Modus Operandi - Upload and Resize Multiple images using Zend Framework and HTML5
body: <p>The good news: </p>
  
  <ul>
  <li>I don't care if it uses ajax or not. </li>
  <li>I don't care if the user must install a specific browser to make it work.</li>
  <li>I don't care if there isn't any specifc progress bar.</li>
  </ul>
  
  <p>The bad news:</p>
  
  <ul>
  <li>I don't want to use flash. </li>
  </ul>
  
  <p>The user must upload a file from any width or height - however no bigger then 8MB.
  The file must be stored on a specific folder (or database column).
  A thumbnail must be generated on a specific folder (or database column).</p>
  
  <p>Those images must be associated with a specific record.</p>
  
  <p>This is a "modus operandi" question, I realise that there is to much code involved here.</p>
  
  <p>So:</p>
  
  <ol>
  <li><p>We first create our form element to support multiple upload, like this:</p>
  
  <pre><code>$element = new Zend_Form_Element_File('multifile');
  $element-&gt;setAttrib('multiple', true);
  $element-&gt;setIsArray(true);
  </code></pre></li>
  <li><p>We then, need to add some validations and allowed extensions;</p></li>
  <li>Then we need to process the upload;</li>
  <li>Once the upload is done, we need to resize those multiple files according to our needs.</li>
  <li>We need to store those resized files somewhere else.</li>
  <li>Once all this is done, we are ready to display the files associated with a specific database record?</li>
  </ol>
  
  <p>Is this the way to go? Should I have more steps? Am I missing something. I've never done this before, but I'm taking it like a challenge.</p>