Viewing 6 replies - 1 through 6 (of 6 total)
  • I’m having the same problem, the difference is that I use MU, the files are uploaded to S3, but not deleted from my main server, anything that I might be missing???

    Plugin Contributor Brad Touesnard

    (@bradt)

    In the settings, do you have “Remove uploaded file from local filesystem once it has been copied to S3” checked?

    Yes it is, I’m thinking probably something related to permissions, though makes no sense, what level of permissions the plugin requires to be able to delete de files, currently is 644

    Plugin Contributor Brad Touesnard

    (@bradt)

    The plugin uses @unlink() just like the core function wp_delete_attachment(), so if deleting an item from the Media Library successfully removes the file on the server, the permissions should be fine.

    It’s more likely there’s a bug that is causing the file path to be wrong. If you look at your PHP error log there should be some entries that say something like “Error removing local file /some/file/path/file.png”. You could also try removing the ‘@’ on line 234 of classes/amazon-s3-and-cloudfront.php and add something new to the Media Library. It should display some info on the screen about why it’s failing to delete.

    Found what it was, it was actually some settings in my php and server preventing it to do what it was supposed to do, it is working now.

    Question, will it work in a multisite installation??

    THanks for your time

    Plugin Contributor Brad Touesnard

    (@bradt)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Images Not Deleted from Website's Main Server’ is closed to new replies.