Upload
Upload files from disk to a remote server over HTTP. Download files from a remote HTTP server to disk.
Setup
This plugin requires a Rust version of at least 1.75
Use your project’s package manager to add the dependency:
-
Run the following command in the
src-tauri
folder to add the plugin to the project’s dependencies inCargo.toml
: -
Modify
lib.rs
to initialize the plugin: -
Install the JavaScript Guest bindings using your preferred JavaScript package manager:
Usage
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:
Default Permission
This permission set configures what kind of operations are available from the upload plugin.
Granted Permissions
All operations are enabled by default.
allow-upload
allow-download
Permission Table
Identifier | Description |
---|---|
|
Enables the download command without any pre-configured scope. |
|
Denies the download command without any pre-configured scope. |
|
Enables the upload command without any pre-configured scope. |
|
Denies the upload command without any pre-configured scope. |
© 2024 Tauri Contributors. CC-BY / MIT