fixed upload checking