Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#29284 closed Cleanup/optimization (fixed)

Make ImageField widget render with accept="image/*"' HTML attribute

Reported by: safu9 Owned by: Tim Graham <timograham@…>
Component: Forms Version: 2.0
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: yes
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: yes

Description (last modified by safu9)

I think ImageField widget need ' accept="image/*" ' attribute as default. In some devices such as iPhone, input form doesn't work without this attribute.

This is pr for this ticket: https://github.com/django/django/pull/9850

Change History (7)

comment:1 by safu9, 6 years ago

Description: modified (diff)
Has patch: set

comment:2 by Junji Wei, 6 years ago

Owner: changed from nobody to Junji Wei
Status: newassigned

comment:3 by Junji Wei, 6 years ago

Owner: Junji Wei removed
Status: assignednew

comment:4 by Claude Paroz, 6 years ago

Needs documentation: set
Needs tests: set
Triage Stage: UnreviewedAccepted
Type: BugCleanup/optimization

comment:5 by Claude Paroz, 6 years ago

Needs tests: unset

I'm unsure about documentation or release note needs.

comment:6 by Tim Graham <timograham@…>, 6 years ago

Owner: set to Tim Graham <timograham@…>
Resolution: fixed
Status: newclosed

In 9fd9f8b:

Fixed #29284 -- Made ImageField render with accept="image/*"' HTML attribute.

comment:7 by Tim Graham, 6 years ago

Summary: ImageField widget need 'accept' attributeMake ImageField widget render with accept="image/*"' HTML attribute
Note: See TracTickets for help on using tickets.
Back to Top