Closed Bug 680779 Opened 13 years ago Closed 13 years ago

<input type=file multiple> should ensure that at least one file can be chosen

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
Firefox 9

People

(Reporter: jdm, Assigned: mbrubeck)

References

Details

(Keywords: html5, platform-parity)

Attachments

(1 file)

According to bug 671833 and its duplicates, a file input with the multiple attribute will not bring up an input dialog at all. This is a very bad UX interaction; we should ensure that if we don't have the ability to choose multiple files we still act like a non-multiple file input.
Indeed, other Web browsers on Android currently seem to ignore the @multiple element, falling back to the same behaviour as what they do for single files:

- Android browser (checked on 2.3.3, Samsung Galaxy S 2) is able to select a single file via an external program (e.g. Picture Gallery, Music, third-party file manager)
- Opera Mobile 11.10 has it own file-picker, but still limited to picking a single file.

- Demo: http://demos.hacks.mozilla.org/openweb/multipleFiles/
- Simpler demo: http://alexandre.alapetite.fr/divers/vrac/20110821-input-file-multiple.html
Assignee: nobody → mbrubeck
Blocks: 616348
Status: NEW → ASSIGNED
Keywords: html5, pp
OS: Mac OS X → Android
Hardware: x86 → All
Whiteboard: [has patch]
Attached patch patchSplinter Review
Attachment #554893 - Flags: review?(blassey.bugs)
Attachment #554893 - Flags: review?(blassey.bugs) → review+
http://hg.mozilla.org/mozilla-central/rev/452d6e414032
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Whiteboard: [inbound]
Target Milestone: --- → Firefox 9
Hey guys, is there a way for me to verify this?
(In reply to Andreea Pod from comment #5)
> Hey guys, is there a way for me to verify this?

Tapping on the "Browse" button under "Multiple files" on http://alexandre.alapetite.fr/divers/vrac/20110821-input-file-multiple.html should prompt you to select an app (e.g. Gallery) to choose a file.
Verified fixed on: Mozilla /5.0 (Android;Linux armv7l;rv:9.0a1) Gecko/20110830 Firefox/9.0a1 Fennec/9.0a1 
Device: LG Optimus 2X (Android 2.2)
Status: RESOLVED → VERIFIED
Verified fixed on: "Mozilla /5.0 (Android; Linux armv7l; rv:9.0a1) Gecko/20110830 Firefox/9.0a1 Fennec/9.0a1" from http://ftp.mozilla.org/pub/mozilla.org/mobile/nightly/latest-jaegermonkey-android/fennec-9.0a1.en-US.android-arm.apk
Device: Samsung Galaxy S2 (Android 2.3.3)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: