it works in developer mode (client and server are in the same machine) but fails when application is deployed in a a remote server.
**Best regards. Roberto.**
When running web client the javascript will be executed on the server. This is why it only works when the server and client are on same machine. What do you want to achieve with that code ? How would you know a correct client file path ? Wouldn’t it make more sense to use a server path ?
in 5.1 you can just do that by asking for hte showFileDialog method…
Then you will get in your callback function the files that the user did select and upload.
then you can ask JSFile.getBytes() for the content of that file.