dioxus icon indicating copy to clipboard operation
dioxus copied to clipboard

HasFileData should list not just files from a drag & drop, but also directory files, with paths or something

Open rogusdev opened this issue 1 year ago • 1 comments

Feature Request

Right now, if I drop a directory, I get evt.files() that just has the name of the directory. I would want to see the full list of all files in that directory and all subdirectories, equivalent to https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory#understanding_the_results

More thoughts in discord thread: https://discord.com/channels/899851952891002890/1300590718766813344/1300593390873874463

Implement Suggestion

I believe something here needs to be incorporated: https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem 's https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem/webkitGetAsEntry -- to not just read the files, but also the items as potential directories

rogusdev avatar Oct 28 '24 23:10 rogusdev

I am looking into how I can implement this in Dioxus

rogusdev avatar Oct 31 '24 00:10 rogusdev