Commit Graph

7 Commits

Author SHA1 Message Date
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
Fabian-Lars 1712f27b77 feat(upload): Use BufWriter for file downloads. (#684) 2023-10-25 12:25:33 +02:00
Fabian-Lars eb55671f27 fix(upload): Don't bail on unknown file length on download, fixes #297 (#330)
* fix(upload): Don't bail on unknown file length on download, fixes #297

* typo
2023-04-24 18:38:18 +02:00
Fabian-Lars 92d9f2754c chore: apply clippy suggestions (#256) 2023-02-15 15:32:11 +01:00
Fabian-Lars c348eb31ea feat(upload): Add function to download files (#89) 2023-02-15 13:06:43 +01:00
Jonas Kruckenberg 2d670f70d9 refactor: use builder style (#50)
* refactor(upload): use plugin builder style

* refactor(sql): use builder style

* refactor(fs-watch): use builder style

* refactor(fs-extra): use builder style

* refactor(auth): use builder style

* fmt

* fmt

Co-authored-by: FabianLars <fabianlars@fabianlars.de>
2023-01-07 15:53:56 +01:00
Jonas Kruckenberg eb3495fb72 copy plugin sources 2022-12-14 18:43:39 +01:00