cancel
Showing results for 
Search instead for 
Did you mean: 

Max Buffer Size for Images on nuxeo/api/v1/upload/ Endpoint

Lynn_
Champ on-the-rise
Champ on-the-rise

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

1 REPLY 1

ataillefer_
Star Contributor
Star Contributor

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:

This method buffers the input internally, so there is no need to use a 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.

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/... changing the component name and declaring the "BatchManagerCache" store in a custom template.

Hope this helps.

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.