Skip to main content
pshashipreetham
19-Tanzanite
Nov 26, 2023 10:35 AM UTC
Solved

Way to download the Internal Storage files

Hi.

 

I am trying a couple of ways to give the user a way to download the files in the below path:

file://storagex/folder1/folder2/folder/xyx/pdf

Below are the ways I have tried:
1. Link Widget(given path in the URL). didn't work

2. The Navigation function, given the path in the URL of the function, didn't work.

3. href, windows.open() of HTML/CSS, it didn't work

Does anyone have a way to do this?

 

Thanks,

pshashipreetham
19-Tanzanite
Dec 5, 2023 4:11 AM UTC

Hi.

 

This was fixed by mapping the network folder to a Thingworx Repository in the Server and then using the download link, which we get when we execute the GetFileListingWithLinks from the Repository thing.

That Download link can be used in the Navigation Function, Grid, Link widget .. etc, such that user can download the file from the Thingworx Dashboard.

 

Thanks,

Shashi Preetham || +91 8099838801 || shashi@psptechhub.com

2 replies

17-Peridot
Nov 28, 2023 1:11 PM UTC

@pshashipreetham ,

 

Can these files reside within a ThingWorx repository? If so, you can use the download links here ..

 

If not, there are a few ways I can think of to accomplish this:
1. Use the FTP Connector 

2. Set up a small python API on that machine that can serve up files then use the ContentLoader functions to retrieve file data

3. Use the RemoteThingWithFileTransfer in concert with a ThingWorx EMS to access files on that local computer.

 

Hope that helps,

Nick

Translate
pshashipreetham
pshashipreetham19-TanzaniteAuthorAnswer
19-Tanzanite
Dec 5, 2023 4:11 AM UTC

Hi.

 

This was fixed by mapping the network folder to a Thingworx Repository in the Server and then using the download link, which we get when we execute the GetFileListingWithLinks from the Repository thing.

That Download link can be used in the Navigation Function, Grid, Link widget .. etc, such that user can download the file from the Thingworx Dashboard.

 

Thanks,

Translate
Shashi Preetham || +91 8099838801 || shashi@psptechhub.com