Follow @BPSPro

WordPress Upload File Size Limit – Change the File Upload Size Limit for a WordPress Form

Comments Off RSS Site Feed Author: AITpro Admin
Published: May 15, 2010
Updated: September 29, 2010

The original question was regarding changing the file upload size limit for a WordPress form and also changing the media file upload size limit – see the link at the bottom of this post to see additional info about changing the media file size upload limit.

I’m going to take a guess at the WordPress plugin you’re using and guess that it is Cforms. If it is not the same general principle should apply to set the max file size limitation within another WordPress form plugin. Also your host server and or mail server may have a cap on the file size your can transfer via PHP. Typically that is 10MB.  GoDaddy by the way has a 20MB Max email attachment size limitation and a whopping 192MB Max file upload size limit for forms and media uploads.  😉  You will need to edit your php.ini file to change the max file size limitations for form uploads and media file uploads if your web host allows it – GoDaddy does allow this.  If your web host does not allow you to edit your php.ini file or offer any other way to increase your upload size limits then the alternative is to use a Javascript or HTTP script to get around this. Radinks.com makes a really good and reasonably priced file upload software. Ok back to the plugin configuration itself. 

This info is specifically for the Cforms plugin. If you’re not using it than I recommend installing it. So from the Dashboard go to your Cforms panel, click on Form Settings, click on File Upload Settings (specific to each form you create), under maximum file size enter the size in KB 12288KB equals 12MB (1MB = 1024KB). You have the option of choosing just a file upload or a file upload and the file to be sent as an attachment in an email.  If your mail server does not allow files over a certain size then you will have to go with another file uploader alternative using HTTP or Javascript instead of a PHP mailer. This will also require that you create a custom template for the theme you are using so that you can integrate the software into your website.

This is specific to GoDaddy web hosting.  Other web hosts may have a completely different deal.  You will find a php.ini in your website root folder.  Download it add the code below and rename the php.ini file to php5.ini and upload it back to your website root folder.  The reason you rename php.ini to php5.ini is so that PHP 5 is used to run your WordPress scripts (files).  This code example below shows that I have set the max size limits to 192MB for posts, form uploads and media uploads.

post_max_size = 192M
upload_max_filesize = 192M

Official WordPress Forum – Change the Media File Upload Size Limit


Tags: ,

Categories: Wordpress Tips - Tricks - Fixes

Skip to toolbar