Fixed filename

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-csv-import-widget@84631 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2013-10-30 09:01:58 +00:00
parent a532d786b1
commit 0225974b90
1 changed files with 3 additions and 0 deletions

View File

@ -96,6 +96,9 @@ public class FileUploadPanel extends FormPanel {
uploadButton.setEnabled(fileUploadField.isValid());
String path = fileUploadField.getValue();
int punto = path.lastIndexOf(".");
if(punto<0){
punto=path.length();
}
int slash = path.lastIndexOf("/");
int backslash = path.lastIndexOf("\\");
String filename="";