webknossos icon indicating copy to clipboard operation
webknossos copied to clipboard

Enforce Storage Quota already before upload

Open fm3 opened this issue 1 year ago • 1 comments

We should determine the size of the to-uploaded files already in the frontend and check if they exceed the quota.

reserveUpload should send either a total file size or even a file-size per file map. the reserve call should be denied if the sum is too large.

also, the actual uploadChunk requests should be denied if they try to write more than reserved.

fm3 avatar Jul 31 '24 10:07 fm3

We should also enforce that an upload does not contain more bytes than were reserved.

normanrz avatar Jul 31 '24 11:07 normanrz