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

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

Upvotes

Upvote

 Mar 01 2024
0 Comments 
New

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)":

 

Pablo1975_1-1709296603062.png

This is the error:

Pablo1975_2-1709296626833.png

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