Closed
Bug 782233
Opened 12 years ago
Closed 11 years ago
Folder upload problems Google chrome support this function like <input type="file" id="file_input" webkitdirectory="" directory="" />
Categories
(Core :: DOM: Core & HTML, enhancement)
Tracking
()
RESOLVED
DUPLICATE
of bug 876480
People
(Reporter: bdeveloper01, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20100101 Firefox/14.0.1
Build ID: 20120713134347
Steps to reproduce:
Folder upload
<input type="file" id="file_input" webkitdirectory="" directory="" />
Actual results:
Google support this code and allow to upload folder. But Our Firefox support one and only file upload... if you try this code first Google chrome and after than try in our Firefox.. you should now what happening...
Expected results:
We need to support Folder upload also...
Updated•12 years ago
|
Severity: normal → enhancement
OS: Windows 7 → All
Hardware: x86 → All
Updated•12 years ago
|
Component: Untriaged → HTML: Form Submission
Product: Firefox → Core
Comment 1•12 years ago
|
||
I don't see a "directory" attribute at http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#the-input-element
Which spec are you looking at for that feature?
Reporter | ||
Comment 2•12 years ago
|
||
(In reply to Boris Zbarsky (:bz) [In and out Aug 1 - 10, out Aug 11-20] from comment #1)
> I don't see a "directory" attribute at
> http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-
> element.html#the-input-element
>
> Which spec are you looking at for that feature?
Hai!
Thanks for your contribution.
You just open this Link "http://html5-demos.appspot.com/static/html5storage/demos/upload_directory/index.html" in Google chrome first and then open in Firefox you known the difference...
Reference site: http://stackoverflow.com/questions/5826286/how-do-i-use-google-chrome-11s-upload-folder-feature-in-my-own-code
Comment 3•12 years ago
|
||
Yes, I know what webkitdirectory does. The point is, there is no standard for this; have you considered approaching the HTML working group about it instead of just having browsers implement things here willy-nilly?
Comment 4•12 years ago
|
||
Thread on whatwg on the topic: http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2010-April/025764.html
I believe the consensus is that both the file <input> field (with "multiple" set) and the drag and drop API should support the dropping of a combination of files and folders, and it should be up to the website script to handle the processing (ie. warn user that only directories are supported, warn user that only images or directories with images can be dropped, etc...)
Comment 5•11 years ago
|
||
See bug #876480.
Generally: the webkitdirectory concept for input is broken in Chrome. It synchronously traverses the directory tree which can cause issues; and the webkitEntry method does not work unless drag and drop has been used. The bug referenced contains standard info on drag and drop.
Comment 6•11 years ago
|
||
Duping forward as the other bug is a little cleaner.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Updated•6 years ago
|
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•