Hi,
I need to copy files between two folders of the same bucket maintaining the same source headers and adding a Cache-Control header in the destination file.
The only way I found is:
list all files in the folder
make a HEAD call to know the Content-Type of each file in the folder
The x-amz-metadata-directive is needed because of the default copy just keeps the source metadata.
Is there an easier way to add a metadata (even after a standard copy)?
Hi, I need to copy files between two folders of the same bucket maintaining the same source headers and adding a Cache-Control header in the destination file. The only way I found is:
The
x-amz-metadata-directive
is needed because of the default copy just keeps the source metadata. Is there an easier way to add a metadata (even after a standard copy)?