WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Increase Upload Size (19 posts)

  1. M4Xvanced
    Member
    Posted 1 year ago #

    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!

  2. fonglh
    Member
    Posted 1 year ago #

    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.

  3. M4Xvanced
    Member
    Posted 1 year ago #

    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.

  4. fonglh
    Member
    Posted 1 year ago #

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

  5. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

  6. M4Xvanced
    Member
    Posted 1 year ago #

    @ 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.

  7. fonglh
    Member
    Posted 1 year ago #

    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?

  8. M4Xvanced
    Member
    Posted 1 year ago #

    @ 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.

  9. fonglh
    Member
    Posted 1 year ago #

    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.

  10. M4Xvanced
    Member
    Posted 1 year ago #

    @ fonglh

    Where?

    Before or after wordpress rules?

    If inside wordpress rules what line?

  11. fonglh
    Member
    Posted 1 year ago #

    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.

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

  13. Terry Houseman
    Member
    Posted 1 year ago #

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

  14. precogtyrant
    Member
    Posted 1 year ago #

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

  15. M4Xvanced
    Member
    Posted 1 year ago #

    Nevermind, I'll just embed it manually.

  16. MarjoriesDaughter
    Member
    Posted 1 year ago #

    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.

  17. dscottS3
    Member
    Posted 8 months ago #

    Adding this to my .htaccess worked for me:

    php_value upload_max_filesize 100M
    php_value post_max_size 100M
  18. lavijain
    Member
    Posted 8 months ago #

    i got internel server error by doing this

    php_value upload_max_filesize 100M
    php_value post_max_size 100M

  19. WPyogi
    Volunteer Moderator
    Posted 8 months ago #

    @lavijain - this thread is outdated and already marked resolved - please start a new thread per the forum guidelines -

    http://codex.wordpress.org/Forum_Welcome#Where_To_Post

    Also, you should check with your hosting company about that kind of error/issue.

Topic Closed

This topic has been closed to new replies.

About this Topic