IT2BE Tools - server().readfile does nto work

Hello

I am using the it2be plugin to read a file from the server like this

var $a = plugins.it2be_tools.server().readFile('test.pdf)

the problem is that if I run the client on a different machine than the server the line above will return null.

If the client runs on the same machine as the server everything works nice!

Does anyone have any idea about what the problem could be?

Isn’t this the purpose of the server().readfile? to read files on the server?

I will really aprecriate any kind of sugestions!

Thanks

Please create an account on our website and, after that, create a ticket when you have a question about our components.

try setting a path

var $a = plugins.it2be_tools.server().readFile('c:/myfolder/test.pdf)

c:/myfolder/test.pdf is a path ON the server!!