fixed file upload code in HOL