wordpress upload http error?

I’m trying to uplaod video files,my upload file size limit is 96mb,and I can upload videos until 10mb size,but I want to uplaod videos that have 20mb size.If I try to uplaod bigger video I get http error,I found on web a lot of solutions but none of them acctualy help me.Is there any other solution how to fix http uplaod error and uplaod bigger files on my wordpress site?
I have tried every thing from there links :

http://wordpress.org/support/topic/http-error-on-image-upload-still
http://wordpress.org/support/topic/flash-uploader-logs-out-during-crunching-phase
http://wordpress.org/support/topic/http-error-image-upload

Read More

Tnx in advance.

Anybody have idea why is this happening ?

Related posts

Leave a Reply

6 comments

  1. Are you on shared hosting by any chance? Shared hosts tend to limit the max uploadable file size on their end and there is nothing you can add to your scripts to change that. If not, then I am mistaken and this is not the solution you are looking for.

    However, if you are on shared hosting it might pay to contact them and ask them the max allowed file sizes they allow their shared hosting accounts to have. Some hosts however let you create a php.ini file, drop it into your site root directory set some hosting variables like upload limits, etc.

    Try creating a file called ‘php.ini’ without the quotes and put in the following:

    upload_max_filesize = 64M  
    post_max_size = 64M
    

    Then place the php.ini file you just created into your WordPress root directory.

    A good way to see if it is your host or WordPress installation is to create a simple file uploading test and then try uploading the same file. If you have the same issue, it isn’t WordPress and is your server configuration.

    Create a page called “file.php” and then add in the following code:

    <form enctype="multipart/form-data" action="upload.php" method="POST">
        <input type="hidden" name="MAX_FILE_SIZE" value="512000" />
        Send this file: <input name="userfile" type="file" />
        <input type="submit" value="Send File" />
    </form>
    

    Now create a file called “upload.php” and add in the following:

    <?php
    
        $uploaddir = 'uploads';
        $uploadfile = $uploaddir . basename($_FILES['userfile']['name']);
    
        echo "<p>";
    
        if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
          echo "File is valid, and was successfully uploaded.n";
        } else {
           echo "Upload failed";
        }
    
        echo "</p>";
        echo '<pre>';
        echo 'Here is some more debugging info:';
        print_r($_FILES);
        print "</pre>";
    
    ?>
    

    Example code taken from here: http://snippets.dzone.com/posts/show/3729

    Now see if that lets you upload a large file. If not, then we’ll further try and debug your WordPress installation to try and rectify the issue.

  2. if all fails try adding this lines in your functions.php

    function push_the_max(){
    @ini_set( 'upload_max_size' , '100M' );
    @ini_set( 'post_max_size', '105M');
    @ini_set( 'max_execution_time', '300' );
    }
    add_action('init','push_the_max');
    
  3. It would be helpful to know what error message you’re getting in the server logs.

    But, take a look at this thread: http://wordpress.org/support/topic/how-to-increase-the-max-upload-size.

    In your php.ini, add or edit the following:

    upload_max_filesize = 120MB
    post_max_size = 120MB
    

    Also you may need to add this to your wp-config.php

    define('WP_MEMORY_LIMIT', '120MB');
    

    And also change your timeout values in your php.ini

    max_execution_time
    max_input_time
    

    Set these to values that are larger than they are currently set to – and see what happens.

    You should check these values are set correctly by checking the information returned by phpinfo()

    This page seems to be a good source of all the PHP configuration settings for large file uploads: http://www.developershome.com/wap/wapUpload/wap_upload.asp?page=php2