Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By sushilck on
I am able to find the code for how to upload multiple files in custom form drupal 7 but wants do the same things drupal 6. Can you please suggest if anyone done previously.
function multifile_upload_form($form, &$form_state) {
$form = array();
$form['file'] = array(
'#type' => 'file',
'#name' => 'files[]',
'#title' => t('Upload some multifile'),
'#description' => t('You are allow to upload jpg, jpeg, png and gif, 10MB Max Size'),
'#attributes' => array('multiple' => 'multiple'),
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Upload'),
);
return $form;
}
Comments
Please do not post the same
Please do not post the same question multiple times, I have removed the duplicates.
Support
Please can you post this question in correct title so export can reply to us.
We need this issue fix quickly
Thanks for your help