Re: [pve-devel] [PATCH v2 http-server 2/2] AnyEvent: Fix #3990 - make small files uploadable

2022-07-12 Thread Matthias Heiserer
On 06.07.2022 18:09, Daniel Tschlatscher wrote: All errors above return HTTP status 501 ("Not implemented") which I think is rather confusing, even if they include a descriptive error message. I'd wager that it would be better to differentiate between malformed multi-form data and internal server

Re: [pve-devel] [PATCH v2 http-server 2/2] AnyEvent: Fix #3990 - make small files uploadable

2022-07-06 Thread Daniel Tschlatscher
The GUI works without problems. Files of arbitrary size can be uploaded without issues. Apart from that, I mostly focused on usage via the API using curl and Postman. What worked as expected: * Upload in the GUI Tested by uploading files of sizes: 0B, 1kB, 8kB, 15kB (did not work before), 16k

[pve-devel] [PATCH v2 http-server 2/2] AnyEvent: Fix #3990 - make small files uploadable

2022-05-13 Thread Matthias Heiserer
== The problem Upload of files smaller than ~16kb failed. This was because the code assumed that it would be called several times, and each time would do a certain action. When the whole file was in the buffer, this failed because the function would try parssing the first part in the payload and th