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

[feature request] notifyOnDropFiles with file #1321

Open
lublak opened this issue Apr 8, 2021 · 3 comments
Open

[feature request] notifyOnDropFiles with file #1321

lublak opened this issue Apr 8, 2021 · 3 comments

Comments

@lublak
Copy link
Contributor

lublak commented Apr 8, 2021

Is your feature request related to a problem? Please describe.
Currently there is no way to get the dropped file with html5. Only the name of the file.
(notifyOnDropFiles)

Describe the solution you'd like
Perhaps this can be realised with assets, so you would actually only have to adapt html5.
notifyOnDropFiles stores the file stream internally in a map.
Also, instead of just the file name, it gives "drop://filename".
If Assets.loadBlobFromPath gets a path with drop:// it will be loaded from the map.

Describe alternatives you've considered
Currently a custom drop handling function in native js.

@RobDangerous
Copy link
Member

It's not something I'll work on myself (features for use in something like producivity applications are not a priority for me) but I'll happily take pull requests.

@lublak
Copy link
Contributor Author

lublak commented Apr 8, 2021

@RobDangerous done :P #1322

@lublak
Copy link
Contributor Author

lublak commented Apr 8, 2021

@ myself
Currently implemented in kha_debug_html5. Just add if(file.startsWith("drop://")) to html5 and test it.

  • folder support? there are currently a few problems with this

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

No branches or pull requests

2 participants