Skip to main content
Solved

Including existing files with the data download service

  • January 11, 2022
  • 3 replies
  • 80 views

arjanboogaart
Participant
Forum|alt.badge.img

data download attribute file writerThe result of my workspace is several geojson files. For usability purposes, I want to include a fixed template .qgz file which is already on the server in the zip, so end users can immediately open it in QGis.

However, I can't find a way to get this to work with the Data Download service.

As a proof of concept, I created a minimal example that just loads a binary file, and writes it again. However, the AttributeFileWriter can't be selected as a Writer output for the Data Download service.

 

Is there another way to include arbitrary binary files with data download?

Best answer by takashi

Hi @arjanboogaart​ , try using the File Copy writer to copy the existing file to any location, and including the writer in download when publishing the workspace to the FME Server. 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

takashi
Celebrity
  • 7843 replies
  • Best Answer
  • January 11, 2022

Hi @arjanboogaart​ , try using the File Copy writer to copy the existing file to any location, and including the writer in download when publishing the workspace to the FME Server. 


jdh
Contributor
Forum|alt.badge.img+37
  • Contributor
  • 2002 replies
  • January 11, 2022

This article is for older versions of FME, but as far as I know, it is still the current practice.

 

https://community.safe.com/s/article/including-additional-files-in-the-data-download-re


mark2atsafe
Safer
Forum|alt.badge.img+57
  • Safer
  • 2554 replies
  • January 17, 2022

In case it helps, I picked this as one of our questions of the week and covered it here: https://www.youtube.com/watch?v=ZvSaHQ7gouI&t=1170s