Using API v2 and `PATCH` to update attachments, keep getting corrupted files.
I'm using javascript with this logic to create the stream:
const readableStream = new Readable();
// eslint-disable-next-line @typescript-eslint/no-empty-function
readableStream._read = () => {};
readableStream.push(fileContent);
readableStream.push(null);
This is the headers:
Accept: 'application/json',
'Content-Type': 'application/json; odata.metadata=minimal; odata.streaming=true',
'IF-MATCH': '*',
'User-Agent': 'axios/0.26.0',
'Content-Length': 413658
What am I doing wrong?