AnsweredAssumed Answered

Is there a way to limit the size of uploaded files?

Question asked by er0045835 on Apr 21, 2016
Latest reply on May 23, 2016 by chris.filkins

We are a self-hosted environment running Tomcat on Windows and are looking for a way to limit the size of a file students can upload either as an assignment or to a discussion board.

 

The change was made in the bb-config.properties file

 

#################### filesize upload size limit #####################

##           maximum size (in bytes) of an uploaded file           ##

##   can be expressed as a number followed by a "K", "M", or "G",  ##

## interpreted as kilobytes, megabytes, or gigabytes, respectively ##

bbconfig.fileupload.max.filesize=100m

 

However, after making the change, we were still able to upload files > 100m.

 

After contacting support, we were informed that this is a known issue and there is currently not a fix available.  Their solution was to front-end tomcat with either Apache or IIS, and neither are a viable option for us.

 

Is anyone aware of a method or possibly even a building block that we could use to enforce this file size limit?

 

Thanks!

Outcomes