Support Uploading Multiple Files for HTML5 Browsers
philbar - November 7, 2009 - 05:05
| Project: | Drupal |
| Version: | 8.x-dev |
| Component: | file.module |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
HTML5 introduces a few new attributes to forms to improve file upload usability. The first is the "Multiple" attribute:
http://dev.w3.org/html5/spec/forms.html#attr-input-multiple
It is already supported by Safari 4 and Chrome 3. It will be supported in Firefox 3.6.
It's easy to use. Simply use the attribute as follows:
<input type="file" multiple>

#1
Thanks for informing me of this change, I wasn't aware of multi-file uploads in HTML5. Unfortunately this will certainly require extensive changes on the processing side as well, especially taking into consideration things like limiting the number of uploads to a certain number or getting the progress bar working with multiple files being uploaded at once. I doubt that the PECL uploadprogress extension properly supports multiple uploads yet.
Considering that nearly all of FileField has been moved into Drupal 7, and we're past code-freeze for new features/APIs in Drupal 7, I doubt this feature will ever be added to FileField in an official release. It might be helpful to develop this functionality as a experiment to see what is necessary for its implementation, but unfortunately we probably won't see this officially released in FileField, since this module will be discontinued in Drupal 7 anyway.
#2
Moving over to the Drupal 8 core queue. I found this issue when looking to see if something like http://www.uploadify.com was available for File field. Using HTML 5 seems like a much better solution (core worthy). Browser support is more solid than I would have imagined.