I\'m a Grails beginner, so please be patient with me. Currently I\'m having hard times manipulating file uploads. As far as I understand using request.getFile()
I c
From server side it is possible to use the configuration at application.yml
to limit file size application wide.
Just insert this code on your application.yml
:
grails:
controllers:
upload:
maxFileSize: 3145728 # 3 * 1024 * 1024 = 3 MB The maximum file size
maxRequestSize: 3145728 # The maximum request size
See:
Grails Guide - upload file
Grails3 file upload maxFileSize limit