• Download multiple folders

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #40191  by chatteridiot
 
Hi, Im using OpenKM Version: 6.3.0 (build: 8156)

I understand to download a folder, i need to use export to zip menu.
But i cannot find how to download multiple folders. Is this function available in 6.3.0 version?

Regards.
 #40219  by jllort
 
No this feature is not implemented, but could be done, it you're interested on doing it we can guide you with source code.
 #40264  by jllort
 
ToolBar.java should modify the method enableMassiveView() to enable toolBarOption.downloadOption also when folders are selected, not only when documents are selected.

Follow the logic into method executeDownload() at Toolbar.java to send also selected foldersUuid.

Should go to com.openkm.servlet.frontend.DownloadServlet and follow what happens when uuidList is not empty ( case of multiple downloads ). And here study the method exportDocumentsAsZip, and exportFolderAsZip -> to make a new method exportDocumentsAndFoldersAsZip

To check if uuid or path is a folder or document node you have the method is valid(null, String) OKMDocument.getInstance().isValid(null, docPath ) the same with OKMFolder.getInstance().isValid(null, fldPath)

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.