#Is there a way to drag files on my react app and get the path to them?

3 messages · Page 1 of 1 (latest)

blazing lake
#

Hey there,
reactjs is web-based therefore it does not have the ability to access the path of files,
so I used the dialog API of Tauri to do that, but what if the user wants to drag and drop the files into the Tauri app, is there a way to generate something similar so that it will get the path of the file?

lime jay
#

Yes, Tauri has an event for file-drop.