How to send file data from frontend to Rust for FFMPEG processing #7503
-
I want to use an |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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) |
Beta Was this translation helpful? Give feedback.
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)