Skip to main content
January 1, 2023
Question

Start process after file upload in WEBAPI

  • January 1, 2023
  • 2 replies
  • 0 views

The API should send a response to the caller and then start a process. 

How ? 

2 replies

harshitb6843
January 2, 2023

Start a process in that API and do not add changing to it. That way, the caller will immediately get a response as soon as the auth is successful and the process will take its own time to complete and will not keep the response part paused. 

But what is your usecase? Why do you want to send the response first before initiating? 

humil914Author
January 2, 2023

I need 2 functions to be performed upon uploading a file (via the WebAPI call). 

   1) Store the file. 

     2) Trigger a startProcess. 

Both with a single API call !


I am aware the uploaded file could be passed to a!strartProcess as a parameter of the process, however this is 
"combinationn" of concerns I would like to avoid. So, what is required is upload the file, and trigger a process.