[Webkit-unassigned] [Bug 229456] New: file picker should ignore "*/*" accept attribute

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 24 11:19:37 PDT 2021


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

            Bug ID: 229456
           Summary: file picker should ignore "*/*" accept attribute
           Product: WebKit
           Version: Safari 14
          Hardware: iPhone / iPad
                OS: iOS 14
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Forms
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: nave at alum.mit.edu
                CC: cdumez at apple.com, wenson_hsieh at apple.com

Given a web form with a file upload field with the accept attribute set to "*/*", like this:

<input type="file" accept="*/*">

Desktop browsers will ignore the accept attribute and allow any file to be uploaded.  On iOS, however, this is not the case and instead of being given the equivalent experience (which would be the "Photo Library / Take Photo / Browse" menu), the user is dropped into the file browser but without the ability to actually select any files (they are grayed out).

Granted, "*/*" is not a valid accept value per the spec. However, based on searching google for "ios upload grayed out" it is clear that many sites are setting this attribute and causing problems for iOS users. This behavior is difficult to diagnose and inconsistent with the desktop experience.

This can be easily reproduced here: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210824/ea421b45/attachment-0001.htm>


More information about the webkit-unassigned mailing list