Get the uploaded file name in a simpler and guaranteed correct way.