# File plugin in Web Client.

**URL:** <https://forum.servoy.com/t/file-plugin-in-web-client/15798>\
**Category:** Classic Servoy\
**Created:** [April 11, 2012, 9:37am UTC](https://forum.servoy.com/t/file-plugin-in-web-client/15798 "2012-04-11T09:37:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashutoslenka426](https://avatars.discourse-cdn.com/v4/letter/a/cc9497/32.png) [@ashutoslenka426](https://forum.servoy.com/u/ashutoslenka426)\
**Post date:** [April 11, 2012, 9:37am UTC](https://forum.servoy.com/t/file-plugin-in-web-client/15798/1 "2012-04-11T09:37:09Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [April 13, 2012, 8:35am UTC](https://forum.servoy.com/t/file-plugin-in-web-client/15798/2 "2012-04-13T08:35:49Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ashutoslenka426](https://avatars.discourse-cdn.com/v4/letter/a/cc9497/32.png) [@ashutoslenka426](https://forum.servoy.com/u/ashutoslenka426)\
**Post date:** [April 13, 2012, 2:01pm UTC](https://forum.servoy.com/t/file-plugin-in-web-client/15798/3 "2012-04-13T14:01:07Z")

</div>

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 .

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [April 13, 2012, 2:09pm UTC](https://forum.servoy.com/t/file-plugin-in-web-client/15798/4 "2012-04-13T14:09:52Z")

</div>

you just can’t, there is no absolute path when uploading in a browser (webclient)

---

<div class="post-metadata">

**Author:** ![ashutoslenka426](https://avatars.discourse-cdn.com/v4/letter/a/cc9497/32.png) [@ashutoslenka426](https://forum.servoy.com/u/ashutoslenka426)\
**Post date:** [April 13, 2012, 3:16pm UTC](https://forum.servoy.com/t/file-plugin-in-web-client/15798/5 "2012-04-13T15:16:36Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [April 13, 2012, 3:31pm UTC](https://forum.servoy.com/t/file-plugin-in-web-client/15798/6 "2012-04-13T15:31:24Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ashutoslenka426](https://avatars.discourse-cdn.com/v4/letter/a/cc9497/32.png) [@ashutoslenka426](https://forum.servoy.com/u/ashutoslenka426)\
**Post date:** [April 13, 2012, 7:44pm UTC](https://forum.servoy.com/t/file-plugin-in-web-client/15798/7 "2012-04-13T19:44:07Z")

</div>

Hi Johan,

Thanks for your reply.
