My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 4: Deleting Files Via WordPress Uploader
2 people starred this issue and may be notified of changes. Back to list
Status:  Accepted
Owner:  ----
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by russellcook13, Jan 20, 2008
Right now when you delete a file using the WordPress uploader the file is
not deleted from your S3 account. This could potentially cause conflict
problems since the folders on your server don't contain the exact same
files as are replicated on your S3 account.
Comment 1 by joetan54, Feb 22, 2008
(No comment was entered for this change.)
Status: Accepted
Comment 2 by joetan54, Mar 12, 2008
unfortunately, it doesn't look like there's an easy way to delete files from the
appropriate s3 account. 

WP deletes all meta data (where the s3 info is stored) for the upload before calling
the "delete_attachment" action hook point, which is a bit of a roadblock...

http://trac.wordpress.org/browser/trunk/wp-includes/post.php#L2140


Comment 3 by sylvinus, Aug 27, 2008
Hello,

I'm doing a WPMU install for jamendo.com

We plan to use your S3 plugin and we needed files to be deleted on S3. Here attached
is the patch we made to make it work, it's not yet very well tested but it seems to
do the job on a few simple usecases.

Hope this helps... thanks for the plugin!

PS: we might upload a few other patches we made in the future. For instance we have
one that makes the s3_cache table global (not one for each blog). Would that be of
interest?
delete_files_on_S3.diff
4.9 KB   Download
Sign in to add a comment

Hosted by Google Code