Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle folder drops recursively #11

Closed
InSuperposition opened this issue Mar 3, 2015 · 11 comments
Closed

Handle folder drops recursively #11

InSuperposition opened this issue Mar 3, 2015 · 11 comments

Comments

@InSuperposition
Copy link

When Dropping in a folder of files it treats the folder a 1 file. It would be nice if files and sub folders could be represented when one single folder is dropped in the drop zone. I'm not sure if this is a limitation of the HTML5 input file type or not.

@InSuperposition InSuperposition changed the title Handle folder drops Handle folder drops recursively Mar 3, 2015
@paramaggarwal
Copy link
Contributor

Good idea, would be great if someone could submit a PR.

@InSuperposition
Copy link
Author

The examples I have found, so far, only work in chrome.
I'll continue to look into it, I probably just need to dive into the API a bit more.
Demo
Code

@paramaggarwal
Copy link
Contributor

Looks like only Chrome 21+ ever implemented support for folders. No other browser supports it, so unlikely to be part of this library. Closing.

http://www.rajeshsegu.com/2012/08/html5-drag-and-drop-a-folder/

@JanCVanB
Copy link

@paramaggarwal @okonet I would love to be able to upload folders - does this change the reasoning behind not supporting folders? http://superuser.com/questions/909112/does-firefox-support-folder-upload

@okonet
Copy link
Collaborator

okonet commented Aug 26, 2016

I believe we even have a JS only implementation for that in #174 but I might be wrong. Either way, I'd like some code issues be resolved before I merge, so help is appreciated.

@okonet
Copy link
Collaborator

okonet commented Aug 26, 2016

Correction ↑: It still uses DOM API, so more investigation is needed I think.

@JanCVanB
Copy link

Great, let's move this conversation to #174

@JanCVanB
Copy link

and #134

@ArtemBernatskyy
Copy link

+1

@dejongch
Copy link

Any chance anything happened with this? I could really use the ability to either accept all files in a folder if it is dropped or somehow know it is a folder and not accept it at all.

@okonet
Copy link
Collaborator

okonet commented Jun 15, 2018

There is a PR in progress #616

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants