Pablo1975's avatar
Pablo1975
Copper Contributor
Mar 01, 2024
Status:
New

item.addFileAttachmentFromBase64Async fails if base64 string is larger than 27892122 bytes

Hello,
I am developing an office web addin for Outlook.
If I call addFileAttachmentFromBase64Async and the base64 string is larger than 27892122 bytes then it fails.
It's the same in OWA or Outlook Desktop.
It's a hardcoded limit in this function: "function Cr(e)":

 

This is the error:

In my opinion Outlook should allow larger attachments... if you manually add a 20 MB file, you can do this. I think up to 35 MB it should be allowed (in fact you can add an attachment of any size now in Outlook).

If you use addfileattachmentasync then you don't have such limitation. Both functions should behave the same way.

Thanks

 

No CommentsBe the first to comment