Hi! I am trying to send information and a file to a web api that I created. I can update the web api to support this.
Basically in zapier I did the following (see screenshot)
This is the code to my web api.
"HttpPost]
public async Task<IActionResult> Post(sFromForm] IFormFile file, eFromForm] EmailData data)
{
Console.WriteLine(data.Subject);
Console.WriteLine(file.FileName);
return Ok();
}
I can either send the subject info or the file info - it is not allowing me to send both. If I update the parameters in my web api to recieve only the file - and send only the file it works well or if I update the parameters to recieve only the EmailData (which is a class with a property of subject) and send only the subject it works well. I need both values. Any assistance would be greatly appreciated!
Thank you!