Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • I actually found that this doesn’t entirely solve the problem.
    For example, I uploaded my site to godaddy and found that it spouted html errors and said it was ‘crushing’ files over 32mb, when the uploader worked fine with those settings locally. I tried media files of a lot of different sizes and found that godaddy’s limit appears to be 32mb. I don’t know about any other hosting at this point

    TLDR;
    You still have to talk to your hosting if you want very large files or videos to be uploaded.

    Well I just read the license agreement and with a comment, it does not violate any terms.
    I should say that you should know some php if you’re going to screw with this. This is my workaround to ftp uploads and side-loading links, and I’m going to use it, because I have people that need to upload that don’t understand an html link tag.

    is that a copyright issue? I was just testing this out pre-production…

    There’s a simpler solution that will work for any host because you’re not messing with php.ini or .htaccess. I know this post is outdated, but I was looking and looking, and I figured out this, which works perfectly.

    open wp-admin/includes/template.php
    find the function wp_max_upload_size()
    alter it (I copied, then commented out the existing) like this:

    function wp_max_upload_size() {
    $u_bytes = wp_convert_hr_to_bytes( ‘1000MB’ );
    $p_bytes = wp_convert_hr_to_bytes( ‘1000MB’ );
    $bytes = apply_filters( ‘upload_size_limit’, min($u_bytes, $p_bytes), $u_bytes, $p_bytes );
    return $bytes;
    }

    That’s for a 1 gb file size. You can make it any size here.

Viewing 5 replies - 1 through 5 (of 5 total)