Changing file upload size limit
Previously, you learned how to upload an image to Roller and include it in a post. The File Upload page lets you upload up to four files, and each one of them must be smaller than 1 MB. What happens if you want to insert a video in one of your posts, and its size is greater than 1 MB? Well, there are two things you need to modify—Roller's File Upload Settings and a property called struts.multipart.maxSize
in the struts.properties
file of your Roller installation.
File upload settings
The first thing you need to do is change the size limit for file uploads in the File Upload Settings section from Roller's Global Server settings. The default size limit is 1 MB, to protect your weblog server in case an intruder tried to upload a very big file that could make the server crash or run out of storage space. If you plan to have other users in your weblog server, be careful with this setting because maybe someone could upload too many videos for your weblog server...