Fix maxFilesSize from over calculating 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.