Here is an example S3 key copy code. There are many reasons you can do this, one of which is updating key metadata. And although this seems to be a widespread solution for this, there is a big problem. The problem is that when I do the example below, I actually lose my Content-Type, which by default returns "application / octet-stream" (not very useful if you are trying to serve web images).
# Get bucket conn = S3Connection(self._aws_key, self._aws_secret) bucket = conn.get_bucket(self._aws_bucket)
Any ideas? Thanks.
source share