Skip to content
Discussion options

You must be logged in to vote

This is why tauri's own file picker dialog exists: https://tauri.app/v1/api/js/dialog. It will give you the file path instead of the file data itself. If you also want users to be able to drag and drop files then there's also tauri's own file drop event https://tauri.app/v1/api/js/window#onfiledropevent but it's a bit tricky to make this behave similar to the browser's native file drop events (it triggers on the whole window and conflicts with the native events)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Lizitao610
Comment options

Answer selected by iambenkay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants