To increase the maximum upload file size in WordPress, you can try the following methods:

    Method#1: Editing the php.ini File

    1. Locate the php.ini file on your server. If you’re unsure of its location, you can create a new file called “info.php” and place the following code in it:
    php
    <?php phpinfo(); ?>
    1. Upload the info.php file to your WordPress root directory.
    2. Access the info.php file in your web browser (e.g., http://www.example.com/info.php) to view the PHP configuration information.
    3. Look for the “Loaded Configuration File” value to identify the exact php.ini file being used.
    4. Open the php.ini file in a text editor.
    5. Find and modify the following settings (or add them if they don’t exist):
    ini
    upload_max_filesize = 64Mpost_max_size = 64Mmax_execution_time = 300
    1. Save the changes to the php.ini file.
    2. Remove the info.php file from your server.

    Method#2: Editing the .htaccess File

    1. Access your WordPress root directory using an FTP client or file manager.
    2. Locate the .htaccess file. If you can’t find it, make sure your FTP client or file manager is configured to show hidden files.
    3. Open the .htaccess file in a text editor.
    4. Add the following code at the beginning or end of the file:
    apacheconf
    php_value upload_max_filesize 64Mphp_value post_max_size 64Mphp_value max_execution_time 300php_value max_input_time 300
    1. Save the changes to the .htaccess file.

    Method#3: Modifying the functions.php File

    1. Access your WordPress theme directory using an FTP client or file manager.
    2. Locate the functions.php file within your active theme folder.
    3. Open the functions.php file in a text editor.
    4. Add the following code at the end of the file:
    php
    @ini_set( 'upload_max_size' , '64M' );@ini_set( 'post_max_size', '64M');@ini_set( 'max_execution_time', '300' );
    1. Save the changes to the functions.php file.

    Method#4: Using a Plugin

    1. Log in to your WordPress dashboard.
    2. Go to “Plugins” -> “Add New.”
    3. Search for a plugin called “Increase Maximum Upload File Size.” here is the link
    4. Install and activate the plugin.
    5. Once activated, go to “Settings” -> “Max Upload Size.”
    6. Configure the maximum file upload size as desired.
    7. Save the changes.

    After applying any of these methods, the maximum upload file size in WordPress should increase according to the values you set. Remember to adjust the values (e.g., ’64M’) to your preferred file size limit.

    Share.
    Unknown's avatar

    Hollands Web is a web design and digital solutions agency specializing in WordPress development, web hosting, SEO, and custom digital solutions. Our team shares practical insights, guides, and strategies to help businesses build, improve, and grow their online presence.

    Leave A Reply

    Ready to get started?

    Are you ready
    Let’s Make Something
    Amazing Together

    Need help? Contact our experts
    Tell us about your project

    Groningen, Netherlands.

    Kuipenstreek 1,
    Oosterwolde 8431 LX

    Istanbul,
    Turkey.

    Hırka-i şerif mah.
    Fatih 34091

    Newsletter

    Sign up to our newsletter!

    © 2026, Holland’s Web. All Right Reserved.