fixed bug that upload file check if file is selected.