Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Hi,
Am trying to load a pdf file directly from the local directory using hyperlink, when the hyperlink clicked I wanted that file to be displayed on a new tab.
url : file://abc.powerdrills.com/Works/1243/pdf/1243.pdf
when I embed this url in link widget and try to hit, nothing happens.
then I used button to trigger link but the new tab comes blank.
Above mentioned url is accessible thru browser if I copy to browser directly.
How can I load this file from local server to thingworx application?
I even tried to read as binary but no luck, am getting error in the url.
please help here
thanks,
John
That's a security feature of your browser not allowing the access to a local resource when the link is coming in remotely.
Google for "Not allowed to load local resource", that's the error message in Chrome.
Nothing ThingWorx can do here, unless you use a different protocol.
Hi Rocko,
If that is the case, is there any other alternate way to upload/retrieve a file from local?
thanks,
John
You could add a browser setting or add-on but then you'd have to do this for every client.
Or you have the file served via http, which means running an http server on local machine or moving the file to a location that does. You could upload the file to a ThingWorx File Repository and link to that, or move it to your Sharepoint.