【发布时间】:2011-04-27 17:37:34
【问题描述】:
我正在制作一个包含表单的 drupal 7 模块,我想连续上传多个文件。目前我正在使用 managed_file 类型的输入字段。
$form['attachment'] = array(
'#title' => t('Attachment'),
'#type' => 'managed_file',
'#default_value' => variable_get('attachment', ''),
'#upload_location' => 'public://perm/',
);
这给了我上传按钮,但只允许我上传一个文件。有没有办法让这个表单上传文件,并且仍然保持第二次上传的选项打开?
【问题讨论】:
标签: file-upload drupal-7 drupal-forms