Bugfix for filesize check in upload