Forms: How to get a file path?

Das Goravani goravanis at
Sat Apr 30 15:59:20 UTC 2022

What’s the point of an FTP feature if you cannot select any files to upload?
Are you sure one cannot use FileOps to get a directory listing, from local machine, and pass a path to the FTP worker and it will upload?
Can one use FTP directory listing to get files off the App Server machine, and upload them to the FTP server?
I’m just trying to find a way to transfer files from one machine to another, thinking that business will need to do that always. 
In my mind, the Form running on client machine should be able to access client machine files and FTP them up to FTP server. 
Even if the Form’s methods and all are running on the App Server. 
Maybe I have a rude awakening to undergo. 
What CAN YOU TRANSFER with the FTP feature?
Can you transfer from one server to another? I asked this already above better. 
My thinking is that business will sometimes output or create files that need to be uploaded to some specific destination, say local office verse parent office… local office needs to provide daily summary to parent office.. via a text file that gets uploaded to some specific place, or PDF reports same thing. How do you transfer them? How do you select them for transfer?

> On Apr 29, 2022, at 5:30 PM, Philip Tulett <philip.tulett at> wrote:
> Hi Das,If you are talking about JSForms, and I think you are,  you are missing some very important concepts. JSForms run in a browser, and interact with the client machine. FileOps run on the host server and interact with files on the server.Going back your file picker and Drag and Drop statement, their is no point in the sever knowing the path to the file on the local machine, it cannot access the file, that's why those functions transfer the binary data,  because that is what the server can use.You need to get you head around the client  server nature of JSForms and the Omnis Web server. Neither can directly access the others files.Kind regards Philip.Sent from my Galaxy
> -------- Original message --------From: Das Goravani <goravanis at> Date: 29/04/2022  20:56  (GMT+00:00) To: OmnisDev List - English <omnisdev-en at> Subject: Forms: How to get a file path? On JS Forms, if you just want to be able to select files, either by a picker or by drag and drop, and you just want the path of the file afterwards, I can’t think of a way to do that.If you use drag onto like a list say, drag from the OS, it gives you an ident number, you can pass that to a client command readfile that has a completed method but that doesn’t give you path I don’t think, plus I couldn’t get it to work recently.If you use the File forms object type, I don’t think that gives you path either, both of these read in the binary data, so I think they thought path was redundant.But I’m trying to make an FTP feature. That requires that you be able to select files some way.Just now it occurs to me that one could possible make their own file lists using FileOps on Forms. Unless I’m not thinking and FileOps doesn’t work in forms code for some reason. I know you can’t pop up the FileOps dialogs on top of forms, that’s out, I meant use the non-interfaced file ops commands that get directory listings. Display them and allow the user to drill down into and back out of like the Finder Open dialog on the Mac. Any Open dialog.. they allow you to navigate the file tree. So I suppose one could roll his own. That’s disappointing if that’s my only option. You would think that one could open a file and get the path on JS Forms natively easily. But I can’t think of a way and NOW I’ve gone over the objects and client commands. Any ideas?_____________________________________________________________Manage your list subscriptions at https://lists.omnis-dev.comStart a new message -> mailto:omnisdev-en at 
> _____________________________________________________________
> Manage your list subscriptions at
> Start a new message -> mailto:omnisdev-en at 

More information about the omnisdev-en mailing list