• Right this is killing me.

    I am trying to add stuff to my library and I get the following error

    yourfile has failed to upload due to an error
    This file exceeds the maximum upload size for this site.

    I have tried changing my php.ini file, htaccess file.

    Tried putting the php.ini in various directories.

    My hosting default upload file maximum is 32meg, I am just trying to raise it from 2meg to 20meg.

    Any ideas?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,
    You’re on the right track. I did the exact same process yesterday. Not with WP at all, another script. But hopefully you can benefit from my machinations. There are some other commands to try in your php.ini. I was surprised to find that my php.ini in the root did not affect a folder under it! So I had to have the special php.ini right in the same folder as the script. I thought this was kind of odd. Servers vary, and YMMV.

    post_max_size = 20M
    upload_max_filesize = 20M

    Other possible settings, set to taste:

    memory_limit = 24M;
    max_execution_time = 60;

    Then again, maybe you tried all this. Time to talk to your tech support in that case.

    Good luck, Dave

    Thread Starter bubbleswp

    (@bubbleswp)

    Managed to solve this.

    The problem was I was putting the code for the .ini file into texteditor on a mac then saving as a .rtf file, uploading to my hosting then renaming to a .ini file.

    My mistake was saving as a .rtf file, you need to save as an ascii file.

    In text edit go format/make text plain then save as Unicode 8, then transfer to your hosting and rename.

    Initially it wouldnt work but that is because my hosting is using php5 so I renamed the file as php5.ini and hey presto.

    Hi
    I am having the same issue and feel very lost and confused by it!

    I have raised the max upload amount to 20MB in my cgi-bin php.ini and still it makes no difference to the 2MB limit!!!!?

    Is there some other thing I’m missing?

    VM

    Try asking your hosts for assistance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘This file exceeds the maximum upload size for this site.’ is closed to new replies.