I am trying fileupload using ajax in a struts2 framework webapp. I am using the "fileupload" interceptor in the action mapping, i am getting the file content in the action, but not the uploaded fileName i.e.,
private File file; // + its setters & getters methods.
private String fileName; // + its setter & getters methods.
System.Out.println(file.getName()); //prints some .tmp file
The fileName variable is null.
Do i have to specify any file Details while making an ajax call to get the FileName of the uploaded file ?
-- Thanks