How to easily increase the maximum file upload size in WordPress

That's why, while it looks like a big gold mine, actually running a website isn't that easy a task, be it on Facebook or any other platform. Some talents such as creativity and resilience are also needed to be able to effectively advance in the world of management web pages.

This leads us to have to know several tricks and strategies to make the website work the way we want. This can often be a real challenge considering all the problems that may arise in the process. But, in the end, with the use of our wits we can move forward.




That said, you may want to know a few little secrets for your WordPress website. That's why we'll talk a little about how to increase the maximum upload size of the files you want to upload to yours below website WordPress.

People often run into the problem of not being able to upload high quality images due to this, or maybe they want to upload a zip file to make it available to your visitors. Be that as it may, below we will tell you how you can solve this little problem.

How to easily increase the maximum file upload size in WordPress

Increase your WordPress file upload size with wp-config.php and functions.php

When we have hired a hosting service for our WordPress website, we can often find ourselves with the small problem of the maximum size that we need to be able to upload files to our page. This may vary depending on the hosting service, but when ours website it totally depends on the files we can upload or not, we are faced with a very big problem.

The good thing is that just like everything has a solution, this too. Often these file upload limits are defined within the php.ini file of our server. Although we often can't access this type of file, there are some hosting services that allow us to insert them and modify some things.




But, in case they don't let you, you can always write assistance and request that these values ​​be increased. But, in case you can do it yourself, you can start with the file wp-config.php typing as follows:

define (‘WP_MEMORY_LIMIT’, ‘128M’);

Then, you need to go to the functions.php file and insert the following lines:

@ini_set ('upload_max_size', '128M');

@ini_set ('post_max_size', '128M');

@ini_set ('max_execution_time', '300');

Keep in mind that the latter will largely depend on what you want to upload, so you can change the values ​​if you see fit.


How to easily increase the maximum file upload size in WordPress

Perform the same process via.htaccess

There are times when the changes we made earlier were useless. When this happens, you have an alternative to being able to run them via the video.htaccess by typing the following:


php_valueupload_max_filesize 128M

php_valuepost_max_size 128M

php_valuemax_execution_time 300

php_valuemax_input_time 300

Now if none of this helped, you also have an option that may not be ideal but does the trick when you need it with a very punctual file. We can assume that a zip file of about 500 MB.


For this, you will need to create a zip file that contains a text file with nothing. Now, you need to upload it to the media library and then go to your server via FTP and find the file you uploaded and then rewrite it with the large file you wanted to upload.

add a comment of How to easily increase the maximum file upload size in WordPress
Comment sent successfully! We will review it in the next few hours.