Skip to content

Commit dd40828

Browse files
committed
chore: update required
1 parent e2c3080 commit dd40828

File tree

6 files changed

+11
-6
lines changed

6 files changed

+11
-6
lines changed

.changes/feat-download-on-post.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
upload: patch
3+
---
4+
5+
Added post request on download function

plugins/upload/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tauri-plugin-upload"
3-
version = "2.0.0-beta.6"
3+
version = "2.0.0-beta.5"
44
description = "Upload files from disk to a remote server over HTTP."
55
authors = { workspace = true }
66
license = { workspace = true }

plugins/upload/api-iife.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/upload/guest-js/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ async function download(
5454
if (progressHandler) {
5555
onProgress.onmessage = progressHandler;
5656
}
57-
57+
5858
await invoke("plugin:upload|download", {
5959
id,
6060
url,
6161
filePath,
6262
headers: headers ?? {},
6363
onProgress,
64-
body: body ?? "",
64+
body: body ?? null,
6565
});
6666
}
6767

plugins/upload/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tauri-apps/plugin-upload",
3-
"version": "2.0.0-beta.5",
3+
"version": "2.0.0-beta.4",
44
"description": "Upload files from disk to a remote server over HTTP.",
55
"license": "MIT or APACHE-2.0",
66
"authors": [

plugins/upload/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ async fn download(
6666
file_path: &str,
6767
headers: HashMap<String, String>,
6868
on_progress: Channel,
69-
body: &str,
69+
body: String,
7070
) -> Result<()> {
7171
let client = reqwest::Client::new();
7272
let mut request = if !body.is_empty() {

0 commit comments

Comments
 (0)