fix to tf file upload