I am working in an application, where user needs to upload an Excel sheet, like .xls files or .xlsx files. I am using below code to get the workbook from FileInputStream,
Workbook wb = null;
wb = WorkbookFactory.create(inputStreamObj);
My question is, how can I get the exact file name which has been uploaded, from this workbook object ? Thanks in advance.