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

Notifications

Announcements

No record found.

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,230 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,362

#2
YUN ZHU Profile Picture

YUN ZHU 867 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 607

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans