Uploading a large file (>1GB) to grails3
问题 Uploading a large file (>1GB) to a grails, I only need to access it via stream, no need to save the entire file to disk or RAM. However how can I access the upload stream? I tried with an Interceptor: class UploadLargeFileInterceptor { int order = HIGHEST_PRECEDENCE UploadLargeFileInterceptor() { match(controller:"apiv2", action:"uploadLarge") } boolean before() { log.error('before') log.error(request.getInputStream().text.length() as String) true } boolean after() { log.error('after') true }