web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

Custom Attachment Upload API

(0) ShareShare
ReportReport
Posted on by 5
Hello,
I've built a custom API that takes JSON data with base64 encoded document. it works well but if the file size is greater than 1MB server returns this error,
 
/One or more errors occurred. (The maximum number of bytes allowed to be read from the stream has been exceeded. After the last read operation, a total of 1063435 bytes has been read from the stream; however a maximum of 1048576 bytes is allowed.)/
 
can anyone suggest an answer or if I need to change my approach. I know the standard way of uploading attachment through API is /post+patch/ but the client specifically wants to send a single request for attachment upload.
I have the same question (0)
  • Gerardo Rentería García Profile Picture
    25,555 Most Valuable Professional on at
  • Community member Profile Picture
    6 on at
    We have a custom API that uploads files that started to fail for files bigger than 1MB around January 29th. We have seen the same on several Business Central installations. I have now seen information from Microsoft that this 1MB limitation is a bug and that a fix is rolling out now, as of February 1st. It might take a few days to reach all installations.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,993 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,116 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 557 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans