Support » Fixing WordPress » How do I change my ‘upload’ limit.

  • Hi,
    I need to upload a particularly large pdf file as part of a Lesson Plan. If I use the media uploader, it tells me that the file is to large. If I use my FTP and upload it via Bluehost, I can never find the pdf after it’s uploaded.
    Can anyone give me some instructions on what is the best way to deal with this problem.

Viewing 5 replies - 1 through 5 (of 5 total)
  • It looks like other people have had this problem too. I think you may need to increase your PHP memory limit in php.ini to be able to do this.

    I followed the instructions and reset the limit in php.ini. I also reset it in settings (per instructions).
    I now have this message when I try to get to my page.
    <Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 30720 bytes) in /home2/nhganet/public_html/wp-includes/functions.php on line 1559>

    Line 1559 is <@chmod( $target, $dir_perms );>
    Can you tell me what I need to fix?

    That’s not good! I would change it back and make sure it still works.

    Maybe try consulting your webhost, I think that this size limit could be set at a few different levels, and the changes you made might not be kosher with their set up. They may need to lift this size limit on their end, or they may suggest an alternative way to change the limit.

    Try increasing all of the following in your php,ini



    I had problems with editing the php.ini file because with most webhosts it is globally and inaccessable for us and you still would have to add a line in .htaccess anyway. But I found an easier way if you have access to the .htaccess file in your www folder. Just include the following 2 lines in .htaccess:

    php_value upload_max_filesize 20M
    php_value post_max_size 20M

    For changing the memory limit add/edit this in .htaccess:

    php_value memory_limit 20M

    And of course change the 20 to anything you need.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How do I change my ‘upload’ limit.’ is closed to new replies.