Dear sir, I'd like to change the media upload size

Dear sir,

I'd like to change the media upload size limitation from 2M(default) to 10M. Here are files I modified, but still failure in uploading.

Please advice. Thanks a lot?

===========================
>>>>> 1. function.php

@ini_set( ‘upload_max_size’ , ‘10M’ );
@ini_set( ‘post_max_size’, ’10M’);
@ini_set( ‘max_execution_time’, ‘100’ );
add_action( 'after_setup_theme', 'fashionforward_theme_setup' );

>>>>> 2. php.ini

; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 10M

post_max_size = 10M

; Maximum number of files that can be uploaded via a single request
max_file_uploads = 100

>>>>> 3. .htaccess

php_value upload_max_filesize 10M
php_value post_max_size 10M
php_value max_execution_time 100
php_value max_input_time 100

  • Michael Bissett

    Hey @skylin,

    Aside from trying to insert these three values in your site's wp-config.php:

    @ini_set( ‘upload_max_size’ , ‘10M’ );
    @ini_set( ‘post_max_size’, ’10M’);
    @ini_set( ‘max_execution_time’, ‘100’ );

    Frankly, it sounds like you're going to need to talk to your host about this, as it sounds like they've got that set as a hard limit. They might not allow for changing it like this, but they'd be the ones to talk to about it. :slight_smile:

    Hope this helps!

    Kind Regards,
    Michael

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.