3 ways to increase maximum file upload size in WordPress
Do you want to increase the maximum file upload size in WordPress. Some times low file upload size limit can stop you from uploading files via media uploader, or install plugins and themes. In this article, we will show you how to easily increase the maximum file upload size in WordPress to fix those issues.
How can we check maximum upload size in wordpress
To check it you can simply go to Media » Add New page and you will see the maximum file uplaod size limit for your WordPress site.
Following are three ways to increase maximum file upload size.
1) Theme Functions File
Just by adding the following code in theme’s functions.php file, you can increase the upload size:
@ini_set( ‘post_max_size’, ’64M’);
@ini_set( ‘max_execution_time’, ‘300’ );
2) Create or Edit an existing php.ini file
For this method you will need to access your WordPress site’s root folder by using FTP or File Manager app in your hosting account’s cPanel dashboard.
In most cases if you are on a shared host, then you will not see a php.ini file in your directory. If you 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:
post_max_size = 64M
max_execution_time = 300
3) htaccess Method
Some people have tried using the .htaccess method where by modifying the .htaccess file in the root directory, you can increase the maximum upload size in WordPress. Edit the .htaccess file in your WordPress site’s root folder and add the following code:
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300
Error: TypeError: Cannot read property map of undefined at resolveDependencies (C:\xampp\htdocs\reactnative\reactnativerealm\drug\node_modules\metro\src\DeltaBundler\traverseDependencies.js
How to get data in DESC order Realm React Native
How to integrate Binect APIs in php
How to delete table in Laravel?