Topic: How do I change the maximum allowed uploaded file size?
Topic type:
Some sites may want to allow larger files to be uploaded than the default 50 megabytes. Here's how to change the setting that determines the maximum allowed file size.
- login to your site as a user that has the "tech admin" role, such as the original administrator account
- click reconfigure site in the Administrator's Toolbox
- click System
- change the value in the Maximum Uploaded File Size field to suit - notice format (use .megabyte or .gigabyte, etc)
- click Save
- restart your server - your changes won't go into action until this is done
That should do it!
Discuss This Topic
There are 4 comments in this discussion.
Read and join this discussion
> Say if I forgot to put the . before the gigabyte and broke the entire site,
> where do I need to go in the code or the database to fix that?
You don't want to change the code itself. So I'll put aside where it lives in the code base.
What you want to do is go to the server and start what is called a console session. Have a read of this about how to change System Settings via the console:
Note that depending which branch of Kete you are running, you may need to write "bundle exec " before the "script/console production" command.
The topic above is for a different System Setting than Image Sizes, to make it work for Image Sizes, replace the "setting = SystemSetting.find_by..." line with this:
Then you can change the values as outlined in the topic.
Tags: images, Troubleshooting, image sizes, system settings, guides, console, production
Just to confirm before I do this - Image Sizes is the correct system setting label for the file upload limit?
Tags: images, Troubleshooting, image sizes, system settings, guides, console, production
D'oh! Sorry, read your post while multtasking.
Try this instead:
Let me know if you have problems.
Tags: images, Troubleshooting, image sizes, system settings, guides, console, production
RHastings
said Where are these values found in the code?
Say if I forgot to put the . before the gigabyte and broke the entire site, where do I need to go in the code or the database to fix that? Looking through the files on the server doesn't give me any good hints as to where I might find that... Thanks!!