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.