Revert "Issue #2284861 by Leksat: File size error on first upload after updating to 7.x-2.x-dev"

This reverts commit 5bebed73fce2d7b1b5bd6f07888d506272ed8c74.