http://xlinesoft.com/phprunner/docs/rename_uploaded_file.htm Your file name will be in $fileArray[$i]["usrName"] variable. EDIT: I missed the part where you talking about import. In import you do not have an option to check the file name before importing.