• Resolved M4Xvanced

    (@m4xvanced)


    I want to upload a swf file to my WP site but it is larger than 8MB. I need to know how to successfully increase the filesize limit. I have tried the php.ini methods and the .htaccess methods. Adding code does not work. I receive Internal Server Errors. The values that everyone says to edit are not there. HELP!

Viewing 15 replies - 1 through 15 (of 18 total)
  • That means the code you put in is probably wrong. This is actually a server configuration issue rather than a WordPress one. You can try asking your hosts for help as some of them don’t allow their users to override PHP settings.

    Thread Starter M4Xvanced

    (@m4xvanced)

    whoops, hold on, I was entering code meant for wordpress 2.1

    oops.

    Hope that helps.
    I need a code for WordPress 3.4.2, all the other threads are for 2.1

    Sorry again for the confusion.

    Doesn’t matter. It’s a PHP configuration issue so the WordPress version is irrelevant.

    Thread Starter M4Xvanced

    (@m4xvanced)

    @ esmi I already tried that. It seems to work but it actually doesn’t.

    @fonghl Good to know, but (other than asking the host) would I increase the upload size. I mean, I have full read-and-write access to php.ini and .htaccess
    What’s wrong with this picture?

    P.S. I’m sure my host allows larger uploads, it’s wordpress that’s limiting it.
    I’m pretty sure (although you’re probably right) that it’s just a wordpress rule, I just don’t know how to tweak it.

    Having full read and write access to php.ini is no use if your host has set up the server to ignore user created configuration files.

    WordPress detects the maximum size from the post_max_size and upload_max_filesize PHP settings. It’s NOT a WordPress rule. Why can’t you just ask your hosts?

    Thread Starter M4Xvanced

    (@m4xvanced)

    @ fonglh

    No, you don’t understand, my php.ini doesn’t even have post_max_size or upload_max_filesize even though everyone says it does. If I did have them, I would not have to even start this thread, but my php.ini does not have it, so I am lost.

    my php.ini doesn’t even have post_max_size or upload_max_filesize

    You can add them in yourself.

    Once again, all this is irrelevant if your host does not allow you to override the default php.ini file, which is why you should ask them.

    Thread Starter M4Xvanced

    (@m4xvanced)

    @ fonglh

    Where?

    Before or after wordpress rules?

    If inside wordpress rules what line?

    php.ini, not the .htaccess file where the WordPress rules are.

    Yet again, where you should put the php.ini file and whether the server even recognizes it is out of your control.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    M4Xvanced – The best thing to do at this point is ask your webhost if you can, and if so, how.

    M4Xvanced, just send your hosting provider a message asking them to up your limit, should’nt be a problem for them

    besides configuring on your end, you will have to ask your hosting provider to increase the limit for you.

    Thread Starter M4Xvanced

    (@m4xvanced)

    Nevermind, I’ll just embed it manually.

    OK, for those of you who weren’t born with machine code imbedded in your brains, let’s discuss what this stuff is. Since I had to take the C programming class three times to understand what the heck was going on, I qualify.

    1. The first thing to consider is that with the WordPress upload, you are uploading through the browser, instead of the tools designed for that kind of work, such as telnet (the beloved tool that is no longer acceptable because of security issues), command line and FTP.
    2. The limits on the file size of an upload file can come from several places:
    a) your web host could limit the size of the files you can upload through the browser. They could be just plan cheap in their resources, or they could be looking out for security.
    b) your web host could limit the size of the files you can upload, but they will allow you to make changes. Here is where the php.ini file comes in. But, your web host may deny you access to that lovely file.
    c) your software, such as WordPress, may limit your upload because of all the other issue. WordPress software seems to adjust itself for the lowest common denominator, including web hosts in Outer Mongolia that haven’t upgraded their hosting software since 1910.
    d) you are asking your browser to package and ship those large files. That task was not in it’s original job description, and it would choke on the job.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Increase Upload Size’ is closed to new replies.