Documentation for put-object --content-type, refs #43

pull/45/head
Simon Willison 2021-12-06 19:15:03 -08:00
rodzic ab44ce6e76
commit 2a8fae5b22
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -364,6 +364,11 @@ Use `-` as the file name to upload from standard input:
This command shows a progress bar by default. Use `-s` or `--silent` to hide the progress bar.
The `Content-Type` on the uploaded object will be automatically set based on the file extension. If you are using standard input, or you want to over-ride the detected type, you can do so using the `--content-type` option:
echo "<h1>Hello World</h1>" | \
s3-credentials put-object my-bucket hello.html - --content-type "text/html"
### get-object
To download a file from a bucket use `s3-credentials get-object`: