Skip to main content
Solved

Uploading multiple files with the REST API

  • September 25, 2017
  • 2 replies
  • 128 views

jdh
Contributor
Forum|alt.badge.img+38

Were trying to use the REST API to upload multiple files for processing in a web application.

 

However each file ends up in a separate directory.

 

$(FME_DATA_REPOSITORY)/{RepositoryName}/{workspacename}.fmw/{UniqueCode}/{filename}

 

 

So when we have have tiffs (not geotiffs) and tfws, the world files are not in the same directory as the image file, and therefore are not used by the tiff reader.

 

 

Any thoughts on how to keep the auxiliary files with the main file? Unfortunately creating a zip file is not feasible.

Best answer by larry

Maybe you can upload to the resource folders and point your workspace reader to the resources.

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.

2 replies

Forum|alt.badge.img
  • Best Answer
  • September 25, 2017

Maybe you can upload to the resource folders and point your workspace reader to the resources.


steveatsafe
Safer
Forum|alt.badge.img+13
  • Safer
  • September 25, 2017

For 2017.1 http://<localhost>/fmerest/apidoc/v3/#!/resources/add_post_11... as @larry mentions. This can upload multipart or more than one file, and each file won't get put into a unique folder... unless of course your code is creating this unique folder and you are uploading files in multiple posts using http://<localhost>/fmerest/apidoc/v3/#!/resources/add_post_13.