I'd like to upload multiple files using Form API.
'#type' => 'file'
provides upload only one file.
$form['picture_upload'] = array(
'#type' => 'file',
'#title' => t(''),
'#size' => 50,
'#description' => t(''),
'#weight' => 5,
);
How can i provide multiple upload?
This is similar to a issue I had: Drupal 7 retain file upload
You can use
managed_file
element type instead offile
here's the drupal documentation: http://api.drupal.org/api/drupal/developer--topics--forms_api_reference.html/7#managed_file