Attach audio data to create custom user greeting endpoint Part of my application retrieves base64 encoded audio data from another API, stores that data as a variable in a data buffer, and then uses that data as the "binary" parameter for the create custom user greeting endpoint. This worked perfectly in Nodejs, I was able to convert the base64 encoded audio data into a stream and pass that into the node form-data like so:const NodeFormData = require('form-data');
formData = new NodeFormData();
let body = {
type: "Introductory",
answeringRule: {id: "38"}
}
formData.append('json', new Buffer.from(JSON.stringify(body)), {
filename: 'request.json',
contentType: 'application/json'
});
formData.append('binary', audioStream, {
filename: 'audioStream.mp3',
contentType: 'audio/mpeg'
});However, when refactoring the application for native browser JavaScript, I get the error: