@tauri-apps/plugin-upload
函数
download()
function download( url, filePath, progressHandler?, headers?,body?): Promise<void>
参数
参数 | 类型 |
---|---|
url | 字符串 |
filePath | 字符串 |
progressHandler ? | 进度处理器 |
headers ? | Map <string , string > |
body ? | 字符串 |
返回值
Promise
<void
>
来源: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/upload/guest-js/index.ts#L44
upload()
function upload( url, filePath, progressHandler?,headers?): Promise<string>
参数
参数 | 类型 |
---|---|
url | 字符串 |
filePath | 字符串 |
progressHandler ? | 进度处理器 |
headers ? | Map <string , string > |
返回值
Promise
<string
>
来源: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/upload/guest-js/index.ts#L16
© 2025 Tauri 贡献者。CC-BY / MIT