We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SDK xero-node Version 5.1.0
Describe the bug I tested API with this code:
const pathToUpload = path.resolve(__dirname, "../public/images/xero-dev.jpg"); // determine the path to your file const body = fs.createReadStream(pathToUpload); // {fs.ReadStream} read the file const contentType = mime.lookup(fileName); const response = await xero.accountingApi.createInvoiceAttachmentByFileName(xeroTenantId, invoiceID, fileName, body, includeOnline,idempotencyKey, { headers: { "Content-Type": contentType, } }); But result: File uploaded but not content
The text was updated successfully, but these errors were encountered:
PETOSS-405
Sorry, something went wrong.
Thanks for raising an issue, a ticket has been created to track your request
No branches or pull requests
SDK xero-node Version 5.1.0
Describe the bug
I tested API with this code:
const pathToUpload = path.resolve(__dirname, "../public/images/xero-dev.jpg"); // determine the path to your file
const body = fs.createReadStream(pathToUpload); // {fs.ReadStream} read the file
const contentType = mime.lookup(fileName);
const response = await xero.accountingApi.createInvoiceAttachmentByFileName(xeroTenantId, invoiceID, fileName, body, includeOnline,idempotencyKey, {
headers: {
"Content-Type": contentType,
}
});
But result: File uploaded but not content
The text was updated successfully, but these errors were encountered: