On Thu, Nov 19, 2009 at 3:16 PM, AJ ONeal <[email protected]> wrote: > If you check out google documents, you'll notice that you can select > multiple files to upload at a time (not just upload multiple files, which I > understand how to do) and that they restrict your selection to a custom set > of allowed file types. > Will you help me build a matrix of how to do this in various browsers? > (I wish this were in wave....) > I tested chrome > <input type="file" multiple> - Webkit / Safari / Chrome > I haven't tested this, but it's reported to work > <input type="file" min="1" max="99"> - Opera > In the firefox bug tracker there has been talk of adding support the webkit > way, but no methods currently seem to work.
If I understand https://bugzilla.mozilla.org/show_bug.cgi?id=523771 correctly, this has already been checked in and will be in Firefox 3.6. It's not just the WebKit way; it's the HTML 5 way: http://dev.w3.org/html5/spec/forms.html#file-upload-state It says that in the file upload state, the input element supports a multiple attribute to specify multiple files. In the bookkeeping details section, it also mentions that the min and max attributes may not be specified. > I'm not sure at all about how to do the filtering in any browser That same page says that you can specify an accept attribute, which should contain a comma-separated list of MIME types to permit. "audio/*", "video/*", and "image/*" are also allowed in addition to specific MIME types. I'm no help with what browsers (and what versions) currently support this aspect of HTML 5, but when browsers implement it, this should become the widely compatible way to accomplish it. -- Peter Henderson [email protected] -------------------- BYU Unix Users Group http://uug.byu.edu/ The opinions expressed in this message are the responsibility of their author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________ List Info (unsubscribe here): http://uug.byu.edu/mailman/listinfo/uug-list
