There's an media center in your
WordPress dashboard to upload audio, video and pictures. You can easily
upload media files in your posts. But there is a limit, you can't upload
file greater than the specified maximum file upload size. In
some of the cases it's very low. But at that time you can upload
pictures only and obviously media center can't be use to upload audio or
video files of larger size.
![]() |
Increase Max File Upload Size |
We recommend that you use Host1Plus. I got awesome support from them on one of my website.
Note: - If these methods doesn't work with your shared hosts then ask for support from your hosting provider.
How To Increase Maximum File Upload Size In WordPress There are total 6 methods to increase maximum upload file size. You can try anyone according to your comfort.
1. By Editing Functions.php File You can increase file upload limit by making some changes in your theme function file. You just need to paste a short code into it and you're done. Follow the following step by step process.
- Navigate to your WordPress dashboard.
- Now click o Appearance tab from sidebar.
- Then go to Editor and click on functions.php.
- Copy the following code and paste it in above file.
@ini_set( ‘upload_max_size’ , ’64M’ );
@ini_set( ‘post_max_size’, ’64M’);
@ini_set( ‘max_execution_time’, ‘300’ );
- Save the file and that's it.
2. Edit Your .htaccess File
Some users have claimed in forums that by editing .htaccess file in root directory we can lift limit. Navigate to your root folder and search for .htaccess file if it's not there then create one. Now just copy the following code and paste it there.
php_value upload_max_filesize 1000M
php_value post_max_size 2000M
php_value memory_limit 3000M
php_value max_execution_time 180
php_value max_input_time 180
3. Edit PHP.INI File
If above method doesn't work for you then try to edit php.ini
file in your directory. Login into control panel and access web
directory. Then search for this file. If you don't see one then you're
on shared hosting. Just create a new file and paste the following code
in it.
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300
Save the file. If 64 doesn't work then try a little less amount.
4. Edit wp-config.php File Access wp-config.php file and edit it.
define(‘WP_MEMORY_LIMIT’, ‘3000M’);
5. Using WordPress Plugin It's one of the easiest way to increase max file size limit. Just download the plugin and activate it.
- Navigate to your WordPress dashboard.
- Then Plugin>>Add Plugin.
- Download Increase Upload Max FileSize plugin and add it.
- You're done.
If you're still having any issue then please let us know. Method other than above given is appreciated.
No comments:
Post a Comment