small efficiency tweak for file upload