As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Hi there,
We are using the upload endpoint (nuxeo/api/v1/upload/) to migrate some images into Nuxeo.
Is there a max buffer size for binaries that sit in the batch upload? Can this be configured?
Thanks, Lynn
Hello,
There is no such thing. The uploaded binaries are directly streamed to a temporary file via the IOUtils#copy method from Apache commons-io, for which the Javadoc states:
IOUtils#copy
This method buffers the input internally, so there is no need to use a BufferedInputStream.
BufferedInputStream
But maybe you are thinking of a maximum storage size on the file system for the uploaded binaries?
If this is the case you can contribute a specific configuration for the underlying "BatchManagerCache" TransientStore and adjust the targetMaxSizeMB and absoluteMaxSizeMB parameters.
targetMaxSizeMB
absoluteMaxSizeMB
To do so you would have to put a new file like https://github.com/nuxeo/nuxeo/blob/master/nuxeo-distribution/nuxeo-distribution-resources/src/main/resources/templates-tomcat/common/config/transient-store-config.xml.nxftl changing the component name and declaring the "BatchManagerCache" store in a custom template.
Hope this helps.