private void checkSize ( long newSize , long maxSize , HttpServerFileUpload upload ) { if ( maxSize >= 0 && newSize > maxSize ) { upload . handler ( null ) ; report ( new IllegalStateException ( "Size exceed allowed maximum capacity" ) ) ; } }
Checks whether we exceed the max allowed file size .