- From: <bugzilla@jessica.w3.org>
- Date: Tue, 24 Apr 2012 10:26:55 +0000
- To: public-html-bugzilla@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=16834
Summary: FileList in input.files (multiple attribute)
Product: HTML.next
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: default
AssignedTo: dave.null@w3.org
ReportedBy: krossekrabbe@gmail.com
QAContact: public-html-bugzilla@w3.org
CC: plh@w3.org, mike@w3.org
I hope I'm submitting this feature request to the correct place, not quite
sure.
--
Accessing the files attribute of an input element returns the files as FileList
object, which is - AFAIK - part of the FileSystem API and therefore grants only
read-only access to its contents.
Unfortunately there are several common use cases which would require the
ability to programmatically _remove_ particular files from the FileList, which
seems not to be possible currently.
For example:
a) Checking the file.size for some limit before uploading, if limit is exceeded
exclude the particular file from uploading.
b) Giving the end-user an opportunity of reviewing his file selection and to
exclude accidentally selected files.
Here's the discussion of a guy facing the same problem:
http://stackoverflow.com/questions/3144419/how-do-i-remove-a-file-from-the-filelist
--
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Tuesday, 24 April 2012 10:27:02 UTC