I would like to create a multiple documents import function in Webtop.
I extended the importainer_component.xml component so that when you click ok, (after you have selected the files you want to import) it will run the following import codes in the class file.
IDfClientX clientX = new DfClientX();
IDfImportOperation impOper = clientX.getImportOperation();
IDfSession sess = this.getDfSession();
impOper.setSession( session );
impOper.setDestinationFolderId(destId);
IDfImportNode impNode = (IDfImportNode) impOper.add("c:\\Temp\\test.txt");
//I have hard coded the document name and path here for simplicity. otherwise I will have a loop to loop through file names and paths from file selector.
impOper.execute();
Instead of importing the test.txt from the user's pc where webtop was started, it will import the test.txt file from the server where the tomcat runs.
Can I modify my code so that it imports files from the user's pc and not the app server?
or is it possible to get IP address of the user's pc so I can include it in the import path.
thanks.