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

We are working to address an issue with subscription email notifications. In the meantime, be sure to check your favorite boards for new topics.

Is there a way to download a file from "ThingWorxFoundation\ThingworxStorage\repository" location?

SKannapiran
11-Garnet

Is there a way to download a file from "ThingWorxFoundation\ThingworxStorage\repository" location?

I have a ThingWorx snippet -Resources["InfotableExporterFunctions"].ExportInfotableAsPdf(params); which is creating a pdf file in the "ThingWorxFoundation\ThingworxStorage\repository" location, but I need that file to be created in my local machine not in the ThingWorx repository.

1. Is there a way to create a file in my local machine ?

2. Or does ThingWorx has a feature to download the created file to my local machine?

Please suggest with your sample code. Thank you

 

1 ACCEPTED SOLUTION

Accepted Solutions

You made a typo — it should be “FileRepositories” instead of “repository”.

View solution in original post

5 REPLIES 5
PaiChung
22-Sapphire I
(To:SKannapiran)

Place your file into a FileRepository Thing and it will support downloadable links

You can download the generated file via a link like this: http://localhost:8080/Thingworx/FileRepositories/SystemRepository/myfile.pdf

Please see the screenshot, unable to download via link.

You made a typo — it should be “FileRepositories” instead of “repository”.

Thank you. It works for me

 

Top Tags