To leave a comment, please Login or Register

1. Theme Functions File

To increase Maximum File Upload Size in WordPress, add the below code to the theme function file. This will increase your upload size.

@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '64M');
@ini_set( 'max_execution_time', '300' );

2. Create or edit existing php.ini file

To edit the php.ini file, locate it in the root folder of your website. If it is not present in your root folder, create a new php.ini file and upload it to the root folder. After that add the code to your php.ini.

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

If 64mb doesn't work then use 10mb or other values.
5 months ago   1

Related Questions

1. What are alt tags and why are they important?

Alternative Text is some kind of text or description of the photos posted in a blogpost. It is important for below reasons: 1. If...

2. How to Solve Core Web Vital Error on Wordpress?

First of all, you have to understand the reason why this issue has come. For this, go to Google search and check the core web r...

3. What is Guest Blogging?

Guest Blogging is the process of writing on someone's blog as a guest author. Guest author means you are a temporary writer one ti...

4. What is VPS Hosting?

The full form of VPS is Virtual Private Server and it is also known as Virtual Personal Server. There are many physical servers in...

5. What is content syndication?

Content syndication in digital marketing is a essentially capability republishing a piece of content material (whether that be an...