Skip to content

Commit 779f594

Browse files
authored
add mc share upload --content-type (#1495)
Document `mc share upload --content-type`. Thank you @0xMALVEE 🎉
1 parent bc261ad commit 779f594

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

source/reference/minio-mc/mc-share-upload.rst

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ documentation on :aws-docs:`Pre-Signed URLs
4646
.. code-block:: shell
4747
:class: copyable
4848
49-
mc [GLOBALFLAGS] share upload \
50-
[--expire "string"] \
51-
[--recursive] \
49+
mc [GLOBALFLAGS] share upload \
50+
[--content-type "string"] \
51+
[--expire "string"] \
52+
[--recursive] \
5253
ALIAS
5354
5455
.. include:: /includes/common-minio-mc.rst
@@ -84,6 +85,18 @@ Parameters
8485
8586
mc share upload --recursive play/mybucket/myprefix/
8687
88+
.. mc-cmd:: --content-type, T
89+
90+
*Optional* Restrict uploads to only requests with a specific `Content-Type <https://www.w3.org/Protocols/rfc1341/4_Content-Type.html>`__ header.
91+
92+
Specify a string with the desired ``Content-Type`` value to accept.
93+
For example, ``video/mp4``.
94+
95+
If configured, clients using the generated URL must include a ``Content-Type`` header for the specified type.
96+
MinIO rejects requests that do not have the correct ``Content-Type`` header.
97+
98+
Content types are also known as `media types <https://www.iana.org/assignments/media-types/media-types.xhtml>`__.
99+
87100
.. mc-cmd:: --expire, E
88101

89102

0 commit comments

Comments
 (0)