Skip to main content
Solved

Uploading multiple files with the REST API

  • September 25, 2017
  • 2 replies
  • 112 views

jdh
Contributor
Forum|alt.badge.img+28
  • Contributor

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.

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

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+12
  • 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.

 


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