fix(ci): adjust package-latest-version script (#398)

This commit is contained in:
Lucas Fernandes Nogueira
2023-05-24 06:51:04 -07:00
committed by GitHub
parent 43be6c7585
commit b5aaf5d9dd
3 changed files with 19 additions and 18 deletions
+11 -11
View File
@@ -61,25 +61,25 @@ 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',
(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
)
"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
);
```
```javascript
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
{ 'Content-Type': '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
);
```
## Contributing