Skip to main content
Solved

Downloading Resources from FME_SHAREDRESOURCE_DATA

  • December 5, 2024
  • 2 replies
  • 32 views

oscard
Influencer
Forum|alt.badge.img+21

Good morning.

 

According to this article I should be able to download resources using an URL similar to:

https://fmeserver.example.com/fmerest/v3/resources/connections/FME_SHAREDRESOURCE_TEMP/filesys/testSpreadsheet.xlsx

But when I try to do so, instead of getting the file I get information about the file:

http://sigdesafme.dfa.es/fmerest/v3/resources/connections/FME_SHAREDRESOURCE_DATA/filesys/GASTDM01/wrapper.log

What I get in the web explorer is this: {"date":"2024-07-17T13:04:52+02:00","path":"/GASTDM01/","size":153839356,"name":"wrapper.log","type":"FILE"}

Am I missing something?

I have tried to change filesys for “download” or “downloadzip”, but the ZIP it downloads is empty.

The version of FME Server is 2021.1.

Best answer by siennaatsafe

Hi ​@oscard, 

Try adding ?accept=contents&disposition=attachment to you URL. Like this

http://<URL>/fmerest/v3/resources/connections/FME_SHAREDRESOURCE_DATA/filesys/PublicTrees.csv?accept=contents&disposition=attachment

I think the accept parameter is the key to getting this to work in a URL. 

I found this in the REST API Docs on a 2021 Flow instance go to http://<YourFlowURLl>/fmerest/apidoc/v3/#!/resources/download_get_10 to access this documentation.

 

Hopefully that helps! 
 

 

View original
Did this help you find an answer to your question?

2 replies

siennaatsafe
Safer
Forum|alt.badge.img+10
  • Safer
  • Best Answer
  • December 6, 2024
Hi ​@oscard, 

Try adding ?accept=contents&disposition=attachment to you URL. Like this

http://<URL>/fmerest/v3/resources/connections/FME_SHAREDRESOURCE_DATA/filesys/PublicTrees.csv?accept=contents&disposition=attachment

I think the accept parameter is the key to getting this to work in a URL. 

I found this in the REST API Docs on a 2021 Flow instance go to http://<YourFlowURLl>/fmerest/apidoc/v3/#!/resources/download_get_10 to access this documentation.

 

Hopefully that helps! 
 

 


oscard
Influencer
Forum|alt.badge.img+21
  • Author
  • Influencer
  • December 9, 2024
siennaatsafe wrote:
Hi ​@oscard, 

Try adding ?accept=contents&disposition=attachment to you URL. Like this

http://<URL>/fmerest/v3/resources/connections/FME_SHAREDRESOURCE_DATA/filesys/PublicTrees.csv?accept=contents&disposition=attachment

 

 

Thanks! That worked!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings