Thursday 17 March 2016

How to maximize Image upload limit in WordPress



                        How to increase the Maximum File Upload Size in WordPress:-



How to increase the maximum file upload size in WordPress depends on web hosting company and desired package. You can see  maximum file upload limit on Media Uploader page (in WordPress). it's not enough for some user because it is as low as 2MB. It is also not enough for media file like audio or video. Most images come under 2MP category  therefore, it is ideal for only images. 


In this tutorial we'll teach, "how to fix and maximize the maximum file upload size upload size in WorldPress.


 
For some it is as low as 2MB, which is clearly not enough for media files like (audio / video). Most pictures are under 2MB, so it is fine of just pictures. In this article, we will show you how to increase the maximum file upload size in WordPress.








Note: Since it  is an intermediate level tutorial. It may not function with some shared hosts in that case you need support of your webhostor; take their help. Since we have selected HostGator as web-hostingl company so they would prove more helpful when some issue arises. 



1.Theme Functions File


There are some cases where we have seen that just by adding the following code in the theme functions file, you can increase the upload size:


1|@ini_set(‘upload_max_size’ , ‘64’ );
2|@ini_set(‘post_max_size’ , ‘64’ );
3|@ini_set(‘max_execution_time’ , ‘300’  );



2 Create or Edit an existing PHP.INI file


In most cases if you are on a share host, you will not see a php.ini file in your directory. If do not see one, then create a file called php.ini and upload it in the root folder. In that file add the following code:



1|upload_max_filesize = 64M
2|post_max_size = 64M
3|max_executionn_time = 300




This method is reported to work for many users. Remember if 64 doesn’t work. Thry 10MB (sometimes that work).



3.Htaccess Method



Some people have tried using the htaccess method were by modifying the htaccess file in the root directory, you can increase the maximum upload size in WordPress. Open or create the .htaccess file in the root folder and add the following code:





1|php_value upload_max_filesize 64M
2|php_vlaue post_max_size 64M
3|php_value max_execution_time 300
4|php_value max_input_time 300





Again, it is important that we emphasize that if you are on a shared hosting package, then these techniques may not work. In that case, you would have to contact your web hosting provider to increase the limit for you. Some hosts completely turn down their users. We recommend that you use HostGator. Their support folks are very helpful in these situations.




1 comment: