[Webkit-unassigned] [Bug 54214] New: when dropping multiple file in input type file with multiple attribute file list has same file multiple times instead of different files
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Feb 10 08:23:06 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=54214
Summary: when dropping multiple file in input type file with
multiple attribute file list has same file multiple
times instead of different files
Product: WebKit
Version: 523.x (Safari 3)
Platform: PC
OS/Version: Windows Server 2003
Status: UNCONFIRMED
Severity: Critical
Priority: P1
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: anilnamde at gmail.com
Created an attachment (id=81984)
--> (https://bugs.webkit.org/attachment.cgi?id=81984&action=review)
File shows scenario step by step
As with the older versions of Safari 4.x when file control is available on the UI user have two option to select file.
1. select file open dialog box
2. by drag and drop the file on control
While investigating HTML 5 support i have found that (Safari Version No : 5.0.1(7533.17.8) ) has added input type "file" with "multiple" option. Which allows user to select the more that one file using the file dialog. Now ideally my understanding is same as earlier so user have still two option to upload the files.
1. select file(s) using open dialog
2. drag drop file(s) from desktop/explorer to the file control
Wow (1) works great but there is issue i found in second stuff. Following are the steps
1. Dragged 5 different files from desktop and dropped on file control.
2. When processed on click of form submit operation there are correct 5 files in FileList object.
3. However i found that all the files in FileFist are same instead of different, **{BUG}**
following is code snippet i have tried.
<html>
<head>
</head>
<body>
<input type="file" multiple="true" id="files" onchange="filechanged()"/>
</body>
<script>
function filechanged(){
var fs = document.getElementById("files");
for(var x=0; x< fs.files.length; x++)
{
console.log(fs.files[x]);
}
}
</script>
</html>
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list