upload utils: Remove unnecessary checks.