Deleting S3 Files with Spaces in the Name

from blog Robb Knight • Posts • RSS Feed, | ↗ original
This is a fun one: I had a file, lets say it was originally called mycoolfile (2).png, it's been uploaded to S3, and then stored in our database. Except at some point it's become URL encoded so it looks like this instead: mycoolfile%20%282%29.png. Now I want to delete that file using the AWS SDK for PHP which you can do, in theory, like so:...