Web Portal Dashboard - Provide multiple downloads

Hi!

following scenario:
I have 80 files as xlsx saved on the KNIME server.
I would like to make all of this files available as downloads in a web portal dashboard.
Do you have an idea how I can handle that smart?

So far I have always used the “File Download Widget” for similar topics.
But for 80 files, it would also be 80 nodes.

Thanks in advance!

BR

Andre

Hi Andre,
I think you can leverage the REST API of your KNIME Server for that. Using a URL like https://yourknimeserver.com/knime/rest/v4/repository/path/to/data/file:data a data file can be downloaded by authenticated users. You can build this URL for each file automatically using List Files/Folders and String Manipulation nodes, then create the following string for each generated URL (also using the String Manipulation node, e.g. with the join() function):

<a href="{your-URL}">{your-file-name}</a>

Replace {your-URL} with the generated URL and {your-file-name} with what you would like to have as the link title. Example:

<a href="https://www.google.com">Google</a>

would turn into Google.
You can then show this in a Table View and because this is HTML based it will render the links correctly and when your colleagues click one of the links, the file should be downloaded.
Kind regards,
Alexander

1 Like

Hi Alexander,

thanks a lot and sorry for the late answer.
I tried your solution and it’s looks like the solution.
(I think one character “>” after {your-URL} is too much?! I compare it with other HTML Tutorials.)

But I got a Error Message, that I have to vontact the Admin.
So I will contact him to find out whats the matter. :slight_smile:

BR

Andre

Hi,
Yes, the “>” was a mistake. I will edit the post :slight_smile: Good luck with your admin!
Alexander

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.