set readme banners to absolute url

Signed-off-by: Lorenzo Lewis <lorenzo_lewis@icloud.com>
This commit is contained in:
Lorenzo Lewis
2023-07-28 19:37:14 +01:00
parent aba07c27b8
commit c46b464c69
26 changed files with 92 additions and 92 deletions
+9 -9
View File
@@ -1,4 +1,4 @@
![plugin-upload](banner.png)
![plugin-upload](https://github.com/tauri-apps/plugins-workspace/raw/v2/plugins/upload/banner.png)
Upload files from disk to a remote server over HTTP.
Download files from a remote HTTP server to disk.
@@ -61,24 +61,24 @@ fn main() {
Afterwards all the plugin's APIs are available through the JavaScript guest bindings:
```javascript
import { upload } from "@tauri-apps/plugin-upload";
import { upload } from '@tauri-apps/plugin-upload';
upload(
"https://example.com/file-upload",
"./path/to/my/file.txt",
'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
{ 'Content-Type': 'text/plain' } // optional headers to send with the request
);
```
```javascript
import { download } from "tauri-plugin-upload-api";
import { download } from 'tauri-plugin-upload-api';
download(
"https://example.com/file-download-link",
"./path/to/save/my/file.txt",
'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
{ 'Content-Type': 'text/plain' } // optional headers to send with the request
);
```