Upload files from disk to a remote server over HTTP. Download files from a remote HTTP server to disk.
This plugin requires a Rust version of at least 1.75
Use your project’s package manager to add the dependency:
-
Run cargo add tauri-plugin-upload
to add the plugin to the project’s dependencies in Cargo.toml
.
-
Modify lib.rs
to initialize the plugin:
-
Install the JavaScript Guest bindings using your preferred JavaScript package manager:
Once you’ve completed the registration and setup process for the plugin, you can access all of its APIs through the JavaScript guest bindings.
Here’s an example of how you can use the plugin to upload and download files:
© 2024 Tauri Contributors. CC-BY / MIT