1 Commits
Author SHA1 Message Date
Abdullah Atta d36b029067 api: reserve storage quota atomically before uploading
The quota was checked, then the file uploaded, then usage incremented, so concurrent uploads could exceed it. Reserve the size with a conditional increment before uploading and release it if the upload fails. Also only roll over the usage that was read in GET /users, and make Limit.Value a plain property so setting it doesn't change UpdatedAt.
2026-10-22 13:13:09 +05:00