Need a little assistance in using php to access blob data sent from javascript post. Here is the method I used to attach blob to formdata -
var formData = new FormData();
formData.append('jsonData',
new Blob([JSON.stringify(
{"action":"readString",
"details":{"string":"string1"}
})
],
{type:'application/json'})
);
Previously I only used $_POST method, but I am having no luck when sending file as blob.
Also, is it necessary to include "{type:'application/json'}"
object. I saw other examples of sending blob via post and did not see this additional object included.