From 2e6ca4a7bd6c5d96e0f9386b42ee64abd3866d46 Mon Sep 17 00:00:00 2001 From: louremipsum Date: Wed, 17 May 2023 18:58:02 +0530 Subject: [PATCH] fix: linguitic and header type changes --- plugins/upload/README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/plugins/upload/README.md b/plugins/upload/README.md index ce854b71..0f74288d 100644 --- a/plugins/upload/README.md +++ b/plugins/upload/README.md @@ -1,7 +1,7 @@ ![plugin-upload](banner.png) Upload files from disk to a remote server over HTTP. -Download files from a remote HTTP server to disk +Download files from a remote HTTP server to disk. ## Install @@ -55,10 +55,10 @@ Afterwards all the plugin's APIs are available through the JavaScript guest bind import { upload } from 'tauri-plugin-upload-api' upload( - 'https://example.com/file-upload' - './path/to/my/file.txt' - (progress, total) => console.log(`Uploaded ${progress} of ${total} bytes`) // a callback that will be called with the upload progress - { 'ContentType': 'text/plain' } // optional headers to send with the request + 'https://example.com/file-upload', + './path/to/my/file.txt', + (progress, total) => console.log(`Uploaded ${progress} of ${total} bytes`), // a callback that will be called with the upload progress + { 'Content-Type': 'text/plain' } // optional headers to send with the request ) ``` @@ -66,10 +66,10 @@ upload( import { download } from "tauri-plugin-upload-api"; download( - 'https://example.com/file-download-link' - './path/to/save/my/file.txt' - (progress, total) => console.log(`Downloaded ${progress} of ${total} bytes`) // a callback that will be called with the download progress - { 'ContentType': 'text/plain' } // optional headers to send with the request + 'https://example.com/file-download-link', + './path/to/save/my/file.txt', + (progress, total) => console.log(`Downloaded ${progress} of ${total} bytes`), // a callback that will be called with the download progress + { 'Content-Type': 'text/plain' } // optional headers to send with the request ) ```