File Chooser Widget for Local Path

Hello,

I’m currently creating a workflow where 3 different XLS files need to be imported.
Unfortunately the path to the files (mount point drive letter) is not the same for every user of the workflow.

Therefore it is necessary that the user specifies the excel file in three Excel Reader Nodes.
To make the workflow more convenient I’d like to create a component with widgets to select all necessary parameters (several datetime values and the excel files).

Unfortunately the File Chooser Widget only works with mount points - but not with local paths.
Is there a workaround - or a third party node that provides a widget for a “browse file” dialog and returns a file path?

Cheers,

Holger

Hello @turczynski,

and welcome to KNIME Community!

How about File Upload Widget node? It’s a widget that works with local paths. Alternatively you can use Local File Browser Configuration node. Also works with local paths but is a configuration node rather than a widget node so if you are building workflow for WebPortal you wanna go with first one.

Br,
Ivan

1 Like

Hi @ipazin ,

thanks for the quick reply! Option 1 fits to my needs because I’m not building the WF for WebPortal but for local use. So I will realize the selection for my three different date values as well via the Configuration Node and then the complete WF is ready to be setup in a single “dialogue”.
:+1:

2 Likes

This is an interesting problem and I have a similar challenge: I want the user to select a filepath / directory individual to his / her system - not a file directly.

I wonder if this is somehow possible?

@kowisoft you can use the File Chooser Widget to select a directory. Does that get you there?

Oh, ok, I thought this was meant to be run on remote servers.

I basically try to build a user interface for local users to make the UX a little bit easier. :wink:

There is also the Repository File Chooser Configuration for configuring a component that will be used locally.

2 Likes

Hey folks,

I’ve got to revive this old thread as I am uncertain if it’s a bug or not. Basically, I seem to be unable to pick local files / folders.

The node forces me to be logged in and still then it does not allow me to pick any local file or folder.

Though, it’s description clearly states “Allows choosing single or multiple files, workflows or directories from a remote mountpoint.”. Manually defining a path, doesn’t work. Hope anyone can shed some light onto that …

PS: As @kowisoft assumed correctly:

That widget is only working on the server.

image

Submitted a feature request:

Best
Mike

1 Like

Thank you for this feature request @mwiegand

Because NOW, I need to select a local path on a remote machine (changed use case).

So basically I have a KNIME Business Hub workflow, where I need to select a directory instead of a single file. It should run in a data app.

I tried the File Chooser Widget without any mountpoint settings and it basically crashes the workflow (so it doesn’t execute at all).

I also tried the File Upload Widget node and this only allows me to select a single file (not multiple ones).

Would be glad to see something (probably what @mwiegand requested), that spits out a directory path which then - no matter if local or remotely on the Business Hub - can be fed into something like a List Files/Folders node which in return then can feed a loop to read in all relevant files.

Upvoted the feature :slight_smile:

2 Likes

Hey @kowisoft,

Not sure if this solves your request entirely, but we snuck in a really really nice node with 5.4. The multiple file upload widget (Labs). With that you can at least upload multiple files and get the paths to the new locations of these files. It might still have some quirks which is why it was released with the labs label, but you might want to give it a try. Would be happy to hear your feedback :wink:

Greetings,
Daniel

3 Likes

just another argument to update to 5.4 :slight_smile:

1 Like