Increasing the max upload filesize [WordPress]

Increasing the max upload filesize [WordPress]
Written by Admin

If your server's default upload file size is too small, is a problem if you want to upload a large file. If you get this error, "The uploaded file exceeds the upload_max_filesize directive in php.ini", here is what you can do.

If you have access to the 'php.ini' file, you can change the settings below:
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

Next, if the above solution is difficult to you, open your index.php file and put this piece of code:
@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '64M');
@ini_set( 'max_execution_time', '300' );

The third way is like the above. Open your ".htaccess" file with an editor and put the below values in:
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300

Last, you can create a file called ".user.ini" and add your values
in. Then, put this file in the same directory as ypur index.php script:
upload_max_filesize = 150M
post_max_size = 150M

About the author



Welcome to my blog. My name is Akis Mparekas. I am a freelance web developer from Greece and I have been involved in SEO, Website Migration (transferring content from a site, eg blogger to WordPress), website optimization, and web scraping (extracting content from one or more sites) for years.

At the same time I am taking my first steps in game development (unity) and animation (blender). I also create cool stuff, either for work or for fun. When I have time, I write tutorials and I blog.

Leave a Comment