maxUploadSize error handling