[wp-trac] Re: [WordPress Trac] #2682: Remove db store of absolute path for uploads

WordPress Trac wp-trac at lists.automattic.com
Mon May 1 13:29:30 GMT 2006

#2682: Remove db store of absolute path for uploads
       Id:  2682            |      Status:  new                     
Component:  Administration  |    Modified:  Mon May  1 13:29:30 2006
 Severity:  normal          |   Milestone:  2.1                     
 Priority:  normal          |     Version:  2.1                     
    Owner:  anonymous       |    Reporter:  ryanscheuermann         
Comment (by ryanscheuermann):

 The new hook makes it possible for wp_handle_upload to return a relative
 path, but inline-uploading.php still does file operations (creating
 thumbnails) after wp_handle_upload is called.  To create a "relativepath"
 plugin, one would have to rewrite inline-uploading.php as well (using the
 'uploading_iframe_src' filter).

 I'm thinking the thumbnail creation code should be moved out of inline-
 uploading.php and possibly even the wp_insert_attachment call?  Maybe a
 "wp_attach_upload" function?

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

More information about the wp-trac mailing list