I am sending formData to the backend using an object literal approach like so (which it has to be):
var formData = {};
formData.patentID = caseSelected.patentID;
formData.clientRef = data.clientRef;
formData.amendedDoc = data.amended.amendedDoc;
When the request is made, there is an error. When I review the request payload, the formData.amendedDoc
isn't sending the attached PDF and instead provides an empty object like so:
If I log the formData just before sending in the http request, I can see that the PDF file is there
Question
How do I send the PDF document with the rest of the formData? Confused on Blobs and Base64 concepts/