Upload forbidden

Hey there, I’m using Jmix 2.3.4.

i would like to ask regarding upload component upload :: Jmix Documentation with max size file set to 5,242,880 bytes. when i try to upload from UI. it appeared error message stated “upload forbidden”

here my code:
image

and failed upload screenshot I shared.
image

image

Am i missing any parts to make it able to upload

Hello,
edit your application.properties file and add these settings, example size is 100MB, restart the app if needed

jmix.ui.upload.maxFileSize=100MB
jmix.ui.upload.maxRequestSize=100MB

spring.servlet.multipart.max-file-size=100MB
spring.servlet.multipart.max-request-size=100MB
server.tomcat.max-swallow-size=100MB

Kind regards,
Mladen

1 Like