-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
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
Outlook Online, addFileAttachmentAsync does not work for inline bitmap (.bmp) images #4693
Comments
I observe the issue is not with the URI but rather with the attachment name parameter on Outlook Web, the same code with "image.png" instead of "image.bmp" as attachment name succeeds on Outlook Web for the same bmp-uri string. Thanks for reporting this issue, we have been able to reproduce it and it has been put on our backlog. We unfortunately have no timelines to share at this point. Internal tracking id: 292566 |
Hello @patilganesh-msft, Please try to reproduce the issue using this code: |
Domain of my organization - online-addins.ablebits.com I think you can try any other BMP image, e.g. hosted on your own domain. |
Hi @DmitryKostochko, Understood, and we are able to repro this issue. Thank you. |
Hi @DmitryKostochko, While we look into the issue of inline support for .bmp images, here is the workaround to make it non-inline. It attaches the .bmp image successfully. Office.context.mailbox.item.addFileAttachmentAsync('https://samples-files.com/samples/images/bmp/480-360-sample.bmp', 'image.bmp', { isInline: false}, (result) => { console.log(result); }); Thank you. |
Thank you, but we need to attach BMP images with { isInline: true }. |
Hi @DmitryKostochko, isIline: true is not supported as of now. We are working on to update the official documentation for the same. |
Please let me know when the official documentation is updated. |
@DmitryKostochko We have updated the document. Closing this, please reopen in case of any more questions. |
We are developing an Outlook add-in for compose mode. The addFileAttachmentAsync method does not work when trying to attach a bitmap image (.bmp) with { isInline: true }.
Your Environment
Expected behavior
The addFileAttachmentAsync method shall work.
Current behavior
The following error is returned:
{
"status": "failed",
"error": { name": "Internal Error", "message": "An internal error has occurred." }
}
Steps to reproduce
Office.context.mailbox.item.addFileAttachmentAsync('https://online-addins.ablebits.com/testaddin/image.bmp', 'image.bmp', { isInline: true }, (result) => { console.log(result); });
Pay attention to the Console tab, you will see the error there.
The text was updated successfully, but these errors were encountered: