how to upload file over 10MB in vaadin 23 (solved)

How to upload file over 10MB in vaadin 23, please instruction me

My upload implementation is working perfectly fine

   Upload upload = new Upload(buffer);
   upload.setAcceptedFileTypes("image/jpeg", "image/png", "image/gif");
   upload.setMaxFileSize(15 * 1024 * 1024);
   upload.addSucceededListener(event -> {
       try {
          BufferedImage inputImage = ImageIO.read(buffer.getInputStream());
          ByteArrayOutputStream pngContent = new ByteArrayOutputStream();
          ImageIO.write(inputImage, "png", pngContent);

          doSomethingWithUploadedImage(pngContent.toByteArray());

        } catch (IOException e) {
                logger.error(e.getMessage());
         }
   });```

Also see my previous answer: https://discord.com/channels/732335336448852018/1032582674189131776/1032750107520663584

Thanks TamNguyen and Rodolfo Felipe, i fixed bug which can’t upload image over 1 MB

how to upload file over 10MB in vaadin 23 (solved)