Opened 16 years ago
Closed 14 years ago
#16217 closed defect (bug) (fixed)
XMLRPC upload limits don't follow the same rules than the web interface
| Reported by: | koke | Owned by: | markjaquith |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | XML-RPC | Version: | 3.1 |
| Severity: | normal | Keywords: | 3.2-early has-patch mobile commit |
| Cc: | Focuses: | multisite |
Description
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
Attachments (1)
Change History (10)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
This looks good as a stopgap. I'd love to rewrite all of the upload-handling functions for multisite at the same time as ms-files.php going away.