• Resolved elearn2014

    (@elearn2014)


    sudo vim /var/www/html/wp/wp-config.php
    define(‘ALLOW_UNFILTERED_UPLOADS’, true);

    I have add the line in wp-config.php.

    to add a line

    why still can’t upload deb package whose size is only 5m in my wordpress?

    can't upload deb package  whose size is only  6M

    • This topic was modified 7 years, 2 months ago by elearn2014.
    • This topic was modified 7 years, 2 months ago by elearn2014.
Viewing 1 replies (of 1 total)
  • Thread Starter elearn2014

    (@elearn2014)

    sudo vim /var/www/html/wp/wp-includes/functions.php

    add_filter(‘upload_mimes’,’custom_upload_mimes’);
    function custom_upload_mimes ( $existing_mimes=array() ) {
    $existing_mimes[‘deb’] = ‘application/deb’;
    return $existing_mimes;
    }

Viewing 1 replies (of 1 total)
  • The topic ‘why can’t upload deb package in my wordpress?’ is closed to new replies.