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

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 25 15:08:37 GMT 2006


#2682: Remove db store of absolute path for uploads
----------------------------+-----------------------------------------------
       Id:  2682            |      Status:  new                     
Component:  Administration  |    Modified:  Tue Apr 25 15:08:37 2006
 Severity:  normal          |   Milestone:  2.1                     
 Priority:  normal          |     Version:  2.1                     
    Owner:  anonymous       |    Reporter:  ryanscheuermann         
----------------------------+-----------------------------------------------
Comment (by ryanscheuermann):

 OK, so instead of having wp_upload_dir return a relative path (and in turn
 the 'upload_dir' filter), we rework wp_handle_upload to strip the ABSPATH
 and return the relative path.  Inline_uploading.php would then store the
 relative path in the DB, but would still have to add ABSPATH after the
 fact for thumbnail creation.  Ya know, something about this whole process
 seems like a weak link.  I'm going to think about this a little deeper
 later on.  I think there are more issues here than we are seeing.

 Also, I am going to patch the issue where inline_uploading stores invalid
 XHTML for the height/width properties (it uses single quotes around
 attributes).

 And yes, I see where the thumbnail problem (WP can't find them) is
 occurring.  I'll submit a new patch in a little while.

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


More information about the wp-trac mailing list