elasticio / component-commons-library

Storage for most common component development cases
Apache License 2.0
0 stars 0 forks source link

fix attachment body size limits #41

Closed if0s closed 2 years ago

if0s commented 2 years ago

Component Bug Report

Description

Method uploadAttachment in class AttachmentProcessor use maxContentLength to define max file size, but it limits only response, instead of it need to use maxBodyLength:

maxContentLength defines the max size of the http response content in bytes allowed in node.js maxBodyLength (Node only option) defines the max size of the http request content in bytes allowed

Axios docs