Open devcaco opened 5 months ago
Hi,
We do not have support for multipart/form-data at the moment. Appreciate it if you have can put in a PR if you have it handy.
Please see the API references for uploading attachment: https://developer.intuit.com/app/developer/qbo/docs/workflows/attach-images-and-notes#attaching-a-file-to-an-object
Error codes (e.g. 6020) in your case reflects that Content length is missing in request and Can’t find the content-length header, as per the QBO V3 API error codes: https://developer.intuit.com/app/developer/qbo/docs/develop/troubleshooting/error-codes
Try passing Content-Length in the header. e.g. ''Content-Length': Buffer.byteLength(body)
Thanks
I was wondering if this library supports uploading files to the attachable endpoint? Currently if I try to do this.
`const image = images[0]; const imageFile = fs.createReadStream(image.rawInfo.path);
I get a response error:
Content length missing in request","Detail":"We cannot find the content-length header in the request.","code":"6020"}
Thanks
CES