Open lublak opened 3 years ago
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.
@RobDangerous done :P https://github.com/Kode/Kha/pull/1322
@ myself Currently implemented in kha_debug_html5. Just add if(file.startsWith("drop://")) to html5 and test it.
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.