Skip to main content
18-Opal
November 26, 2023
Solved

Way to download the Internal Storage files

  • November 26, 2023
  • 2 replies
  • 1139 views

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,

Best answer by pshashipreetham

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,

2 replies

17-Peridot
November 28, 2023

@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

pshashipreetham18-OpalAuthorAnswer
18-Opal
December 5, 2023

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,