[wp-trac] [WordPress Trac] #16217: XMLRPC upload limits don't follow the same rules than the web interface

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 13 10:58:38 UTC 2011


#16217: XMLRPC upload limits don't follow the same rules than the web interface
--------------------------+-----------------------------
 Reporter:  koke          |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Multisite     |    Version:  3.1
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 If you have upload_space_check_disabled=true and fileupload_maxk=0, from
 the dahsboard (at least with the flash uploader) it means no limits, but
 from xmlrpc every upload fails

 The first calls wp_handle_upload, which has a filter check_upload_size,
 and it checks the space limit check:
 {{{
 if ( get_site_option( 'upload_space_check_disabled' ) )
     return $file;
 }}}

 However, xmlrpc uses wp_upload_bits, which has a filter
 upload_is_file_too_big, which only checks fileupload_maxk

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16217>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list