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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

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

SKannapiran
12-Amethyst

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

 

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

 

Announcements


Top Tags