Opened 9 years ago

Closed 9 years ago

Last modified 9 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, 9 years ago

Description: modified (diff)
Has patch: set

comment:2 by Junji Wei, 9 years ago

Owner: changed from nobody to Junji Wei
Status: new → assigned

comment:3 by Junji Wei, 9 years ago

Owner: Junji Wei removed
Status: assigned → new

comment:4 by Claude Paroz, 9 years ago

Needs documentation: set
Needs tests: set
Triage Stage: Unreviewed → Accepted
Type: Bug → Cleanup/optimization

comment:5 by Claude Paroz, 9 years ago

Needs tests: unset

I'm unsure about documentation or release note needs.

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

Owner: set to Tim Graham <timograham@…>
Resolution: → fixed
Status: new → closed

In 9fd9f8b:

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

comment:7 by Tim Graham, 9 years ago

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