[wp-trac] Re: [WordPress Trac] #4402: Store uploads in database, not filesystem

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 4 20:17:29 GMT 2007


#4402: Store uploads in database, not filesystem
----------------------------+-----------------------------------------------
 Reporter:  msrivathsan     |        Owner:  anonymous
     Type:  enhancement     |       Status:  closed   
 Priority:  normal          |    Milestone:           
Component:  Administration  |      Version:  2.2      
 Severity:  normal          |   Resolution:  wontfix  
 Keywords:                  |  
----------------------------+-----------------------------------------------
Comment (by Otto42):

 There are hooks all over the upload functions.

 If you want to write a plugin to change how uploads work, then there's a
 filter hook on 'wp_handle_upload' that you'll find useful, along with the
 'edit_attachment' and 'add_attachment' action hooks. You'll also need the
 'wp_update_attachment_metadata' filter.

 And if even that's not enough, there's a hook to replace the entire file
 upload system with whatever you like. Just add a filter to
 'uploading_iframe_src' and you can write your own frame to fill that
 space, and manage your uploads any way you want.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4402#comment:9>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list