cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

How to load/read files from local directory

Janaki.Raman
7-Bedrock

How to load/read files from local directory

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

 

 

3 REPLIES 3

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.

Top Tags