To Increase File Uploading Size

59 views
Skip to first unread message

Neel Patel

unread,
Jan 18, 2024, 12:54:11 AM1/18/24
to inception-users
Hello,

I am facing issue when I try to upload file to Inception for annotation as remote user. 

Error Log:  the request was rejected because its size (151052968) exceeds the configured maximum (104857600)

It seems that multipart max file size limit set as 100MB in "inception-app-webapp\src\main\resources\application.yml" and size of my targeted upload file is larger.

can I modify this limit using "setting.properties" file or using some other approach in which modification of Inception code is not needed? 

Thank you.

Richard Eckart de Castilho

unread,
Jan 18, 2024, 12:57:29 AM1/18/24
to inception-users
Hi Neel,

> On 18. Jan 2024, at 05:27, Neel Patel <neelpa...@gmail.com> wrote:
>
> Error Log: the request was rejected because its size (151052968) exceeds the configured maximum (104857600)
>
> It seems that multipart max file size limit set as 100MB in "inception-app-webapp\src\main\resources\application.yml" and size of my targeted upload file is larger.
>
> can I modify this limit using "setting.properties" file or using some other approach in which modification of Inception code is not needed?

Any of the settings in the application.yml should be overridable via the settings.properties file.

You only need to use the dot-notation in the properties file of course instead of the hierarchical
YAML notation.

A list of Spring properties such as the max upload size can be found here:

https://docs.spring.io/spring-boot/docs/current/reference/html/application-properties.html#appendix.application-properties.web <https://docs.spring.io/spring-boot/docs/current/reference/html/application-properties.html>

Cheers,

-- Richard


Reply all
Reply to author
Forward
0 new messages