[wp-trac] [WordPress Trac] #17314: Max file size upload restriction to 2Mb

WordPress Trac wp-trac at lists.automattic.com
Wed May 4 00:49:51 UTC 2011


#17314: Max file size upload restriction to 2Mb
-------------------------------+------------------------------
 Reporter:  Ivaseg             |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Upload             |     Version:  3.1.1
 Severity:  major              |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------
Changes (by dd32):

 * keywords:   => reporter-feedback


Comment:

 Can you run this code at all for me?
 {{{
 var_dump(
 wp_max_upload_size(),
 ini_get( 'upload_max_filesize' ),
 wp_convert_hr_to_bytes( ini_get( 'upload_max_filesize' ) ),
 ini_get( 'post_max_size' ),
 wp_convert_hr_to_bytes( ini_get( 'post_max_size' ) )
 apply_filters( 'upload_size_limit', '10M')
 );
 }}}

 You'll need to run it in an admin context, So either via the Debug Bar
 plugin with the Debug Bar Console plugin installed as well, or you might
 be able to do `include (ABSPATH . 'wp-admin/includes/template.php');` if
 you're running the code on the front end.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17314#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list