[wp-trac] Re: [WordPress Trac] #6559: The information on the file
posted by xmlrpc cannot be changed by wp_handle_upload.
WordPress Trac
wp-trac at lists.automattic.com
Thu Apr 3 07:18:06 GMT 2008
#6559: The information on the file posted by xmlrpc cannot be changed by
wp_handle_upload.
----------------------+-----------------------------------------------------
Reporter: jyoshida | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.6
Component: XML-RPC | Version: 2.5
Severity: normal | Resolution:
Keywords: |
----------------------+-----------------------------------------------------
Comment (by jyoshida):
Replying to [comment:1 josephscott]:
> I'm not sure I follow, isn't the current XML-RPC behavior the same as
uploading a file via wp-admin? See wp_handle_upload( ) in wp-
admin/includes/file.php.
No, it is different.
For example, in wp-admin/include/media.php media_handle_upload(),
wp_handle_upload() is called before wp_insert_attachment().
I think that meida_handle_upload() is used from a dashboard when an image
file is uploaded. The wp_handle_uplaod filter can access the uploaded file
and can also perform the updation of file information.
> Hmmm, I'm tempted to say that we should be using wp_handle_upload( ) in
XML-RPC.
I think that a good idea replaces apply_filters() by wp_handle_uplaod().
--
Ticket URL: <http://trac.wordpress.org/ticket/6559#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list