• Resolved carlin25

    (@carlin25)


    I’ve spent days reading and trying methods to change the upload limit to a bigger size yet nothing seems to be working. I’ve created a php.ini file, created a .httaccess file, and even added a line in the wp-config.php file, but I continue to get the following message: “IMG.jpg” has failed to upload due to an error
    The uploaded file exceeds the upload_max_filesize directive in php.ini.

    I’m at the point where I’ve given up continuously looking through the forum, a big variety of websites, and through so many tutorial videos.

    I run my own Windows-based server and have direct access to the WordPress folder.

    These are the codes I have in the following files:

    wp-config.php
    define('WP_MEMORY_LIMIT', '250M');

    php.ini

    upload_max_filesize = 250M
    post_max_size = 250M
    max_execution_time = 300

    .httaccess

    php_value upload_max_filesize 250M
    php_value post_max_size 250M
    php_value max_execution_time 300
    php_value max_input_time 300
    
    SetEnv PHPRC /home/carlos/public_html

    Any help at all will be very, very appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Did you restart the server or processes after making those file changes?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Also make a phpinfo page to see if the changes took effect.

    Thread Starter carlin25

    (@carlin25)

    I did restart the server and the changes didn’t take effect. I just created the phpinfo.php page, and it showed the following:

    Loaded Configuration File C:\Program Files (x86)\PHP\v5.5\php.ini

    Is that the file I need to edit? If it is, I just changed a couple lines inside the file to:

    ; Maximum allowed size for uploaded files.
    ; https://php.net/upload-max-filesize
    upload_max_filesize = 250M

    Restarting the server, and… it worked!!! Ahh!!! How do I upvote/commend you guys?! So simple! I even recalled making a phpinfo page before, but I think I must have not done it right.

    Thank you guys so much. Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Upload Limit’ is closed to new replies.