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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

how to open-download blf file in thingworx mashup.

Jamal8548
11-Garnet

how to open-download blf file in thingworx mashup.

I have uploaded a blf file in Repositry but when i click on it i download it as file with name fileRepositryDownlader.

 

My QUESTION

 

1) When i download a file. It needs to be the same file blf type file which i have uploaded it. (My major requirement is that i want to download it from mashup.)

 

2) When i click on file in mashup it needs to show me the file content same as we open PDF in mashup.

 

cru2.png

ABOVE file looks when i download it 
below you can see in mashup it shows like that.I have uploaded it manually in fileRepositry.

 

cur1.png

 

4 REPLIES 4
Rocko
17-Peridot
(To:Jamal8548)

You didn't write what widget you use on your mashup to download the file.

When you use a Link you can provide the URL in two different formats. Both save the file with the name is has on the server:

 

https://someserver/Thingworx/FileRepositoryDownloader?download-repository=SystemRepository&download-path=/myfile.blf 

https://someserver/Thingworx/FileRepositories/SystemRepository/myfile.blf 

If that doesn't work for you it you can validate using a different browser.

Jamal8548
11-Garnet
(To:Rocko)

I am using webframe widget in mashup. It works fine for PDF and it view it in browser and then i can also download it but for this blf type i just want to download the file but its not able to download it. If i ZIP the file and download it then ZIP is able to download easily. do you have any solution?

Rocko
17-Peridot
(To:Jamal8548)

It works for me if I put the link https://someserver/Thingworx/FileRepositories/SystemRepository/myfile.blf  into the URL property of Web Frame. It gets downloaded as myfile.blf.

Jamal8548
11-Garnet
(To:Rocko)

I am passing parameters from main mashup in collections  with service GetFilelistingWithLinks of repositry and send to webframe.

 

Jamal8548_2-1709618734992.png

 

 

For me when i click on the media then it opens in webframe and also downloads the fil. It shows me like that. 

Jamal8548_0-1709617902905.png

 

what do you think can be the issue?

 

Jamal8548_1-1709618043226.png

 

Top Tags