Some fetch implementations like the one used in the Cozy Desktop
client (i.e. using Chromium's network stack) don't allow setting the
Content-Length header when sending stream bodies.
With this limitation, the remote cozy-stack cannot run size checks
until the whole file has been uploaded. If the file is large and too
large for the available space or the file size limit, the uploading
client can spend quite some time uploading it to end up receiving an
error response.
cozy-stack now allows passing the file size via the querystring
parameter Size so those clients will get the benefits of early size
checks.
Some
fetch
implementations like the one used in the Cozy Desktop client (i.e. using Chromium's network stack) don't allow setting theContent-Length
header when sending stream bodies. With this limitation, the remotecozy-stack
cannot run size checks until the whole file has been uploaded. If the file is large and too large for the available space or the file size limit, the uploading client can spend quite some time uploading it to end up receiving an error response.cozy-stack
now allows passing the file size via the querystring parameterSize
so those clients will get the benefits of early size checks.