title: How can I upload multiple files with drupal 7?
body: <p>I'm making a drupal 7 module that contains a form and I would like to upload multiple files in a row. Currently I'm using a managed_file type of input field. </p>
  
  <pre><code>$form['attachment'] = array(
                              '#title' =&gt; t('Attachment'),
                              '#type' =&gt; 'managed_file',
                              '#default_value' =&gt; variable_get('attachment', ''),
                            '#upload_location' =&gt; 'public://perm/',
                              );
  </code></pre>
  
  <p>This gives me the upload button, but only lets me upload one file. Is there a way I can tell this form to upload a file and still keep the option for a second upload open?</p>