github vaadin/flow 1.0.18
Flow 1.0.18

latest releases: 24.6.0.alpha4, 24.5.4, 24.6.0.alpha3...
20 months ago

What's Changed

New features

  • Update Apache Commons File Upload to 1.5 (#16136)

  • Add upload limits for Apache File Upload (#16091)
    Commit · Pull request

    Adds the default limit of maximum file part count for upload (10000) and also gives an opportunity to override it and other two limits (upload maximum file size and maximum request size) by creating a custom StreamRequestHandler :

    public class CustomServiceInitListener implements VaadinServiceInitListener {
        @Override
        public void serviceInit(ServiceInitEvent event) {
            event.addRequestHandler(new CustomStreamRequestHandler());
        }
    
        private static final class CustomStreamRequestHandler
                extends StreamRequestHandler {
            // override getFileSizeMax() and/or getRequestSizeMax() if needed
            @Override
            protected long getFileCountMax() {
                // your limit:
                return 1000;
            }
        }
    }

    See https://vaadin.com/docs/v10/flow/advanced/tutorial-service-init-listener for more information on how to add a custom request handler.

Full Changelog: 1.0.17...1.0.18

Don't miss a new flow release

NewReleases is sending notifications on new releases.