We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I mistakenly used setcors on a file. It seems to silently overwrite the file.
setcors
$ echo '<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <CORSRule> <AllowedOrigin>*</AllowedOrigin> <AllowedMethod>GET</AllowedMethod> <AllowedMethod>POST</AllowedMethod> <AllowedMethod>DELETE</AllowedMethod> <AllowedMethod>PUT</AllowedMethod> <AllowedHeader>*</AllowedHeader> </CORSRule> </CORSConfiguration> ' > cors_config.xml $ s3cmd setcors cors_config.xml s3://test-bucket/test.txt $ s3cmd get s3://stefans-bucket/test.txt -
download: 's3://stefans-bucket/test.txt' -> '-' [1 of 1] 378 of 378 100% in 0s 1381.92 B/s<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <CORSRule> <AllowedOrigin>*</AllowedOrigin> <AllowedMethod>GET</AllowedMethod> <AllowedMethod>POST</AllowedMethod> <AllowedMethod>DELETE</AllowedMethod> <AllowedMethod>PUT</AllowedMethod> <AllowedHeader>*</AllowedHeader> </CORSRule> </CORSConfiguration> 378 of 378 100% in 0s 1378.01 B/s done
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I mistakenly used
setcors
on a file. It seems to silently overwrite the file.Steps to reproduce
The text was updated successfully, but these errors were encountered: