Skip to main content
Question

HTTPCaller POST method to get FileUpload

  • September 6, 2024
  • 3 replies
  • 97 views

syahirah
Contributor
Forum|alt.badge.img+2

Hello, I am configuring FME to receive file uploaded from website through API - POST method. We want the api to directly pass the uploaded file from website to FME for processing. Note that the file is not saved into any DB.

The issue I am facing is the the configuration of HTTPCaller Transformer to receive file datatype. Anyone can help suggest on this? Would be very helpful if I can get any advice to configure it the correct way since I’m stuck with this.
 


The logs: 


The api test through postman has give success response to upload file.


The file type I am testing to upload is excel file. Later will need to test with CSV & Shapefile.

virtualcitymatt
Celebrity
Forum|alt.badge.img+34

Can you please clarify if you want to use FME to upload a file via an API? Or you want some web app to upload an file to FME Flow for processing?

The HTTPCaller is used to make requests. If you  are expecting data to be uploaded and then used in a workspace there are a few methods. you should take a look at this article https://support.safe.com/hc/en-us/articles/25407584866445-Send-Source-Data-to-FME-Server-with-HTTP-POST
 


syahirah
Contributor
Forum|alt.badge.img+2
  • Contributor
  • September 24, 2024
virtualcitymatt wrote:

Can you please clarify if you want to use FME to upload a file via an API? Or you want some web app to upload an file to FME Flow for processing?

The HTTPCaller is used to make requests. If you  are expecting data to be uploaded and then used in a workspace there are a few methods. you should take a look at this article https://support.safe.com/hc/en-us/articles/25407584866445-Send-Source-Data-to-FME-Server-with-HTTP-POST
 

 

Hi, sorry for the late reply and thanks for your input.

For your question, I want to the FME the receive the data via an API once the POST method is triggered by upload button.

 

below is the example website where user will upload file:

 

What I want is to directly receive data from the file, without storing file in any database.


nielsgerrits
VIP
Forum|alt.badge.img+52

Reply


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