Skip to main content
Solved

Placing a link on a webpage to download data

  • February 29, 2024
  • 4 replies
  • 308 views

bkgg
Contributor
Forum|alt.badge.img+4
  • Contributor

Hey everyone,

 

On FME Server (2021.2.6) I have resources that I want to make available on an HTML page. I want users to be able click on the link and immediately download the data that's in the resource folder: https://fmeserver.EXAMPLE.com/fmeserver/#/resources/browse/FME_SHAREDRESOURCE_DATA/EXAMPLE?name=Data

 

Seems like a pretty standard deal.

Best answer by timatsafe

Hi @bkgg,

You can do this by creating a workspace to retrieve the data from the FME Server Resources by using the FMEServerResourceConnector transformer or by calling the FME Server REST API using the HTTPCaller transformer. After you’ve created the workspace you can publish it to FME Server and create a workspace app that can be shared as a URL to users or by generating a webhook URL (see Run or Share a Workspace>Other Ways to Run this Workspace>Webhook URL).

 

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

4 replies

timatsafe
Safer
Forum|alt.badge.img+3
  • Safer
  • Best Answer
  • March 4, 2024

Hi @bkgg,

You can do this by creating a workspace to retrieve the data from the FME Server Resources by using the FMEServerResourceConnector transformer or by calling the FME Server REST API using the HTTPCaller transformer. After you’ve created the workspace you can publish it to FME Server and create a workspace app that can be shared as a URL to users or by generating a webhook URL (see Run or Share a Workspace>Other Ways to Run this Workspace>Webhook URL).

 


bkgg
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • March 5, 2024

Thanks Tim. This ought to do the trick.


whkarto
Contributor
Forum|alt.badge.img+14
  • Contributor
  • June 7, 2024

When I think of publishing such a workspace as webhook, what do you enter as Download to Folder parameter? I want to download a geopackage file to the default Windows Downloads directory on client machines that issued the download link in their web browser.

And is it sufficient to only use the FlowRecourceConnector to initialize the download, or do I have to read the file in my workspace afterwards and rewrite it so it can be downloaded?


andrewj74
Supporter
Forum|alt.badge.img+5
  • Supporter
  • June 7, 2024
timatsafe wrote:

Hi @bkgg,

You can do this by creating a workspace to retrieve the data from the FME Server Resources by using the FMEServerResourceConnector transformer or by calling the FME Server REST API using the HTTPCaller transformer. After you’ve created the workspace you can publish it to FME Server and create a workspace app that can be shared as a URL to users or by generating a webhook URL (see Run or Share a Workspace>Other Ways to Run this Workspace>Webhook URL).

 

just to say i dont think you need to create the workspace app. In he “run worskspace” just make sure the service is set to a “data download service” and create a webhook from there in the advanced section.


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