Fast Search Robot
Hızlı Arama Robotu
Maximum file size limit

Maximum file size limit

1 Puan2 Puan3 Puan4 Puan5 Puan
Loading...
Increasing Maximum File Upload Size in WordPress
WordPress has become a webhouse with many themes and plugins that allow you to create just about any type of website. From e-commerce to a simple blog, the things you can do with WordPress are limitless. However, there are many things you need to consider when building a site with WordPress, such as improving security, speed, and page load times. A portfolio with large image files or a single file per GBs. If you are building a WordPress website hosting a video hosting site with a size of video, you may encounter a barrier to upload media files larger than 25MB. By default, the upload max file size size in WordPress is between 2MB and 150MB, depending on your web hosting provider’s settings. To check what is the current upload max file size limit on your WordPress site, go to WP Panel → Media → Add New. You will see the current maximum upload size at the bottom as shown in the screenshot.

If the current maximum upload max file size limit meets your request, you can leave it as is. But if it doesn’t, then there are many ways to increase the upload max file size in WordPress. I will show six of these in this article.

LETS ! LET’S SOLVE THE MISTAKE

1.Wash .htaccess update (Linux Hosting Only)

If your web server is using Apache and PHP is set up as an Apache module, you can add a few lines of code to your WordPress .htaccess file to increase the upload max file size size in WordPress. To access the htaccess file, connect to your server via FTP client and WordPress Go to the folder where it is installed. Open the .htaccess file in a code editor or Notepad and add the following lines.

php_value upload_max_filesize 64M
php_value post_max_size 128M
php_value memory_limit 256M
php_value max_execution_time 300
php_value max_input_time 300

This will define the maximum upload max file size in Megabytes. Change the numbers according to your need. Maximum processing time and maximum input time in seconds. Execution time defines the time limit spent in a single script. Choose a suitable number for your site.

2.Edit Functions.php File

In some cases, you may not be able to access the .htaccess file, you can search and find the properties of your theme. You can easily increase the size limits by adding the following lines of code to the functions.php file in your theme. Note that it will revert to its default values.

@ ini_set ( ‘upload_max_size’ , ’64M’ ) ;

@ ini_set ( ‘post_max_size’ , ’64M’ ) ;

@ ini_set ( ‘max_execution_time’ , ‘300’ ) ;

3.php.ini Option
This is a default file used to configure any application running on PHP. This file contains the necessary parameters for file timeout, upload size and resource limits. Access your WordPress root directory using SSH or FTP and search for a php.ini file. In some cases, if this file is not visible to other options, you can create a new file instead. Open any text editor and enter the code below or create a new file. Copy the code below and save it as php.ini.

upload_max_filesize = 25M 
post_max_size = 13M 
memory_limit = 15M

Now upload this php.ini file inside the same root folder using SSH or FTP.

4. Increasing the Upload Max File Size in Multi Site

If you are using WordPress multisite, the upload size can be increased in the settings. This increase depends on your server settings. If your server is set to 20MB, you cannot increase the WordPress upload size to 25MB. However, if your server is set to 20MB, if your network setting is set to 15MB, you might be able to fix the problem by increasing the upload size to 20MB.

5.wp-config.php File

Another way to increase the maximum file size (upload max file size) in WordPress is to define the size parameter in the wp-config.php file. To do this, access your WordPress root directory using SSH or FTP and find a wp-config.php file.

Open the file in any text editor and add the following code.

@ ini_set ( 'upload_max_size' , '20M' ) ;  
@ ini_set ( 'post_max_size' , '13M' ) ; 
@ ini_set ( 'memory_limit' , '15M' ) ;  

Noting the changes; increase the file upload size.
  1. Contact your hosting provider
    If you don’t want to edit the files yourself, you can always contact your hosting provider to do this.

Result
WordPress is a versatile CMS (Content Management System). There is always a way to do something. If you haven’t found answers to any of your WordPress issues, you can always turn to the WordPress community for assistance. I’m here to help you too.

Maximum file size limit COMMENTS