fix the file upload bug.