[wp-trac] [WordPress Trac] #13917: wp.uploadFile cannot be attached to any post

WordPress Trac wp-trac at lists.automattic.com
Wed Jun 16 10:45:50 UTC 2010


#13917: wp.uploadFile cannot be attached to any post
-------------------------+--------------------------------------------------
 Reporter:  ciprian_vb   |       Owner:       
     Type:  enhancement  |      Status:  new  
 Priority:  normal       |   Milestone:  3.0.1
Component:  General      |     Version:  3.0  
 Severity:  normal       |    Keywords:       
-------------------------+--------------------------------------------------
 wp.uploadFile from xmlrpc.php saves each upload as an unattached file.

 I wanted to attach it to a post once uploaded but a option for this does
 not exist and the $post_id is given the value 0 before
 wp_insert_attachment inside the $attachment array.

 I am happy to make this enhancement if needed and approved but I'm not
 sure what the protocol is as this is my first time in doing this.

 Thanks,
 Ciprian Turcu

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


More information about the wp-trac mailing list