Fix maxFilesSize from overcalculating total files size

This fixes a bug where the total files size seen was overcalculated, so the request would be rejected before actually reaching the limit.

Fixes #47