Support HTML5 'accept' attribute

Created on 22 June 2015, about 9 years ago
Updated 27 February 2023, over 1 year ago

This is a great module. Thanks for the effort put in here.

HTML5 has an attributes called accept, which lets browser limit the file types allowed. This is super useful to prevent the users from upload file types that will be rejected by server-side validation.

I'm attaching a patch that uses the file field's allowed file types and convert it to the format expected by the accept attribute. I also tested it across multiple browsers and they worked well (Firefox, Chrome and Internet Explore 10).

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡±πŸ‡°Sri Lanka Ayesh Everywhere

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024