Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » Filechooser: how to get the directory containing the file(s)
Filechooser: how to get the directory containing the file(s) [message #1840273] Sun, 11 April 2021 04:09 Go to next message
Eclipse UserFriend
I tried to use the FileChooseer class to get a list of filenames and the directory containing the files in order to forward both to a service, which should process the files. What the method startChooser returns is a list of files, including their content, but I cannot find a way to get the directory. Did I overlook something, or is there a lack of functionality?
Re: Filechooser: how to get the directory containing the file(s) [message #1840301 is a reply to message #1840273] Mon, 12 April 2021 02:43 Go to previous message
Eclipse UserFriend
Hi Reinhold

Scout uses a regular INPUT element for its file-choosers in the UI. When you upload a file to the browser and then query the INPUT element to show the name of the uploaded file, it will only return the file-name, not the whole path. I guess this is because of security concerns. Since browsers don't provide this information, you cannot access it in Scout either.

Anyway: when you have a Scout Classic application, the UI server normally couldn't access the filesystem of a remote client anyway, even if you had the whole path.

Cheers,
André

Previous Topic:LDAPAuthenticator - example
Next Topic:OAuth Authentication
Goto Forum:
  


Current Time: Sat Nov 08 08:56:19 EST 2025

Powered by FUDForum. Page generated in 0.04061 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top