[Webkit-unassigned] [Bug 24444] New: No multiple JS property for <input type="file" multiple />

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Mar 7 08:21:45 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=24444

           Summary: No multiple JS property for <input type="file" multiple
                    />
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows Vista
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Forms
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: leaverou at fresset.gr


In Safari 4 Beta the great feature of multiple file selection at once landed.
This is a great step forwards but in my opinion, lacks a key feature, which
would enable more developers to use it currently.

In JavaScript, you can set whether a file input allows multiple files or not,
by using setAttribute() and clearAttribute(). However, you cannot access that
attribute as a property, like you can to disable a control (element.disabled). 
This at first glance might seem trivial, but it would enable feature detection,
so that we can find out whether the browser supports that attribute or we have
to use a fallback solution. If it was implemented, we could use the condition
(element.multiple === true || element.multiple === false) to determine browser
support. We cannot detect support for this feature as things currently are,
since getAttribute will return the same value regardless of whether the browser
actually understands the attribute 'multiple' or not.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list