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

[WIP] Player: make it possible to drop folders #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mosra
Copy link
Owner

@mosra mosra commented Oct 9, 2018

It's a Chrome-specific callback hell that Firefox was forced to implement, now should be also available in Edge. Not in IE or Safari, so we need to be careful.

With the current state, I need to gather the total count of files to load before submitting them in order to make it possible for the C++ side to know when everything is ready and we can't start import. But because it's one callback per directory, I have no idea how to do this.

Any help from actual web devs who know what they're doing in appreciated (because I'm not a web dev and neither I know what I'm doing). Thanks in advance.

Related SO thread that I based the implementation on: https://stackoverflow.com/questions/3590058/does-html5-allow-drag-drop-upload-of-folders-or-a-folder-tree

TODO: it's a callback hell, so I'm not easily able to get count of all
files before starting to upload them.
@mosra mosra self-assigned this Oct 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

1 participant