Update upload_file.js

bug fix