Jesper L. Nielsen 4a5ab18a22 fix(upload): return type on is now a string (#976)
* fix(upload): return type on POST is now string

A POST to a webserver can not always be expected to be a JSON response.

Success is now determined by the HTTP return code.

Upon success the body content is returned as a string.

* feat: add content-length on POST

Not all embedded devices are acceptable to receiving unspecified amounts
of data. Appending the content-length up front helps this devices
succeed.

* fix: return values unified

The return values was not used.

On POST the HTTP error code is returned as an enum.

* fix: upload, return value as string

* Update plugins/upload/src/lib.rs

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>

* Update plugins/upload/src/lib.rs

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>

* fix: added covector changelog file

---------

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
2024-04-15 15:16:07 +02:00
2023-05-03 09:32:30 +02:00
2023-01-07 10:32:45 +01:00
2022-12-14 18:54:05 +01:00
2022-12-14 18:54:05 +01:00
2022-12-14 18:54:05 +01:00
fmt
2023-01-11 19:09:09 +01:00

Plugins Found Here

Win Mac Lin iOS And
authenticator Interface with hardware security keys. ? ?
autostart Automatically launch your app at system startup. ? ?
fs-extra File system methods that aren't included in the core API. ? ?
fs-watch Watch the filesystem for changes. ? ?
localhost Use a localhost server in production apps. ? ?
log Configurable logging.
persisted-scope Persist runtime scope changes on the filesystem. ? ?
positioner Move windows to common locations. ? ?
single-instance Ensure a single instance of your tauri app is running. ? ? ?
sql Interface with SQL databases. ? ?
store Persistent key value storage. ? ?
stronghold Encrypted, secure database. ? ?
upload Tauri plugin for file uploads through HTTP. ? ?
websocket Open a WebSocket connection using a Rust client in JS. ? ?
window-state Persist window sizes and positions. ? ?

This repo and all plugins require a Rust version of at least 1.64

Partners

CrabNebula

For the complete list of sponsors please visit our website and Open Collective.

S
Description
No description provided
Readme 39 MiB
Languages
Rust 61.1%
TypeScript 14.9%
Kotlin 13.3%
Swift 8.2%
JavaScript 1.4%
Other 1%