Hi All ,
I am having Web client in Seroy 6.0.5 . I am using show file open dialog with call back function . In the call back function , I am getting the file array . I could able to access the file name and file size . But I could not able to get the file absolute path using the .getAbsolutePath method . How can I access the file absolute path in web client ?. Is anything I am doing anything wrong ?.
Thanks in advance . Wating for your feedback.
there is no absolute path… What absolute path do you expect? The one on the client? (so where the webbrowser does run?)
Thats impossible and completely useless because you can’t do anything with that path, you don’t have access to it.
Hi Johan ,
I want the absolute path of the local file which I want to upload . In my case it is a servoy developer . Where the application server and web client are the same machine.
Code :
file = plugins.file.showFileOpenDialog( null, null, false ,callback);
function CallbackMethod(file){
if(!file)
return true;
application.output(file[0].getName()) ; - it is returning correct value
application.output(file[0].getSize()); - it is returning correct value.
application.output(file[0].getAbsolutePath()); - it is returning null.
}
How can I access the local path of the file ? . I need it for uploading .
you just can’t, there is no absolute path when uploading in a browser (webclient)
Hi Johan,
Thanks for your reply . In my case , I am uploading the files to Amazon server. I am using a different plugin for it . There is a method in the plugin , which requires the local path of the file . It is working fine in the smart client . How can this be made possible in webclient ?.
Please share some feedback on this.
you can’t have a local path on a clients machine
So you have to give it a local path on the server machine, so you first need to save the files on a server directory and give that to that other server side running plugin.