I am trying to submit a form with FormData. But the payload is null.
I have tried creating the FormData object with the form as input and also by appending the form items to FormData
var claim = new FormData();
claim.append('DistributorPONr', $('#claim-form #distributor-po').val());
claim.append('SalesOrderNr', $('#claim-form #sales-order').val());
ajaxCall({
url: '@Url.Action("ValidateForm", "Claims")',
data: claim,
type: 'POST',
cache: false,
processData: false,
contentType: false,
})
The payload for claim is empty in network