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:
parent
a532d786b1
commit
0225974b90
|
@ -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="";
|
||||
|
|
Loading…
Reference in New Issue