The accept attribute on file inputs works differently across platforms: Windows and Android filter properly, Apple does not
By
Adam Silver
Summary
The article discusses the problem with using the accept attribute on HTML file input elements. On Apple devices (macOS/iOS), the accept attribute doesn't properly filter file types in the file picker dialog, instead showing all files but disabling invalid ones. However, on Windows and Android, the accept attribute works as expected by providing a proper filter that can be disabled. The author reflects on whether the web standard should be changed to accommodate Apple's poor implementation or if Apple should fix their implementation instead.
Source
Key quotes
· 3 pulledThis is on Apple, elsewhere you get a proper filter that you can disable.
I'm against ruining stuff for everyone just because Apple did something stupid.
When you use the accept to specify which file types will be allowed...the dialog will disable invalid types like this:
You might also wanna read
Japan Mandates Apple to Allow Third-Party Browser Engines on iOS by December
Japan's Smartphone Act has prohibited Apple's ban on third-party browser engines on iOS, aiming to promote competition and improve web app p
open-web-advocacy.org·10mo agoHow Windows handles unassociated file types across versions
A blog post examining how different versions of Windows handle clicking on unassociated file types (files without a default program). The au
AcceptMyApp: iOS App Pre-Submission Risk Scanner and Rejection Analyzer
AcceptMyApp is a pre-submission risk scanner and rejection analyzer tool for iOS developers that helps identify potential App Store review i

Apple's Browser Engine Restrictions Persist Despite DMA - Impact on Open Web Advocacy
Apple's rules and technical restrictions are hindering other browser vendors from offering their engines on iOS in the EU. Despite claims of
open-web-advocacy.org·11mo agoApple Allows Alternative Browser Engines in iOS 26.2 for Japan Users
Apple is allowing alternative browser engines (non-WebKit) in iOS 26.2 and later for users in Japan. This applies to two types of apps: dedi
Apple's Safari Restrictions on iOS/iPadOS Limit Progressive Web App Features to Protect App Store Revenue
The article criticizes Apple for intentionally limiting Progressive Web App (PWA) features in Safari on iOS and iPadOS to drive more App Sto
Comments
Sign in to join the conversation.
No comments yet. Be the first.
