Forms: How to get a file path?

Philip Tulett philip.tulett at
Fri Apr 29 21:30:00 UTC 2022

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 

More information about the omnisdev-en mailing list