{"id":732,"date":"2010-05-15T09:52:35","date_gmt":"2010-05-15T16:52:35","guid":{"rendered":"http:\/\/www.ait-pro.com\/aitpro-blog\/?p=732"},"modified":"2010-09-29T23:55:48","modified_gmt":"2010-09-30T06:55:48","slug":"wordpress-upload-file-size-limit-change-the-file-upload-size-limit-for-a-wordpress-form","status":"publish","type":"post","link":"https:\/\/www.ait-pro.com\/aitpro-blog\/732\/misc-projects\/wordpress-tips-tricks-fixes\/wordpress-upload-file-size-limit-change-the-file-upload-size-limit-for-a-wordpress-form\/","title":{"rendered":"WordPress Upload File Size Limit &#8211; Change the File Upload Size Limit for a WordPress Form"},"content":{"rendered":"<p>The original question was regarding changing the file upload size limit for a WordPress form and also changing the media file upload size limit &#8211; see the link at the bottom of this post to see additional info about changing the media file size upload limit.<\/p>\n<p>I&#8217;m going to take a guess at the WordPress plugin you&#8217;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\u00a0within 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.\u00a0 GoDaddy by the way\u00a0has a\u00a020MB Max email attachment size limitation and\u00a0a whopping 192MB Max file\u00a0upload\u00a0size limit for forms and media uploads.\u00a0 \ud83d\ude09\u00a0\u00a0You 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 &#8211; GoDaddy does allow this.\u00a0 If\u00a0your 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.\u00a0<\/p>\n<p>This info is specifically for the Cforms plugin. If you&#8217;re not using it than\u00a0I 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).\u00a0You 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.\u00a0 If your mail server does not allow files over\u00a0a certain size then\u00a0you 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.<\/p>\n<p>This is specific to GoDaddy web hosting.\u00a0 Other web hosts may have\u00a0a completely different deal.\u00a0 You will find a php.ini in your website root folder.\u00a0 Download it add the code below and rename the php.ini file to php5.ini and upload it back to your website root folder.\u00a0 The reason you rename php.ini to php5.ini is so that PHP 5 is used to run your WordPress scripts (files).\u00a0 This code example below shows that I have set the max size limits to 192MB for posts, form uploads and media uploads.<\/p>\n<pre>post_max_size = 192M\r\nupload_max_filesize = 192M<\/pre>\n<p><a style=\"color: #000066; text-decoration: underline;\" title=\"WordPress Forum Media File Size Limit\" rel=\"nofollow\" href=\"http:\/\/wordpress.org\/support\/topic\/277832\" target=\"_blank\">Official WordPress Forum &#8211; Change the Media File Upload Size Limit<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The original question was regarding changing the file upload size limit for a WordPress form and also changing the media file upload size limit &#8211; see the link at the bottom of this post to see additional info about changing the media file size upload limit. I&#8217;m going to take a guess at the WordPress [&hellip;]<\/p>\n","protected":false},"author":167,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[13],"tags":[139,140],"class_list":["post-732","post","type-post","status-publish","format-standard","hentry","category-wordpress-tips-tricks-fixes","tag-file-upload-size-limit-wordpress","tag-wordpress-form-file-upload-size-limit"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ait-pro.com\/aitpro-blog\/wp-json\/wp\/v2\/posts\/732","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ait-pro.com\/aitpro-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ait-pro.com\/aitpro-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ait-pro.com\/aitpro-blog\/wp-json\/wp\/v2\/users\/167"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ait-pro.com\/aitpro-blog\/wp-json\/wp\/v2\/comments?post=732"}],"version-history":[{"count":0,"href":"https:\/\/www.ait-pro.com\/aitpro-blog\/wp-json\/wp\/v2\/posts\/732\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ait-pro.com\/aitpro-blog\/wp-json\/wp\/v2\/media?parent=732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ait-pro.com\/aitpro-blog\/wp-json\/wp\/v2\/categories?post=732"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ait-pro.com\/aitpro-blog\/wp-json\/wp\/v2\/tags?post=732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}