File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed
source/reference/minio-mc Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -46,9 +46,10 @@ documentation on :aws-docs:`Pre-Signed URLs
46
46
.. code-block :: shell
47
47
:class: copyable
48
48
49
- mc [GLOBALFLAGS] share upload \
50
- [--expire " string" ] \
51
- [--recursive] \
49
+ mc [GLOBALFLAGS] share upload \
50
+ [--content-type " string" ] \
51
+ [--expire " string" ] \
52
+ [--recursive] \
52
53
ALIAS
53
54
54
55
.. include :: /includes/common-minio-mc.rst
@@ -84,6 +85,18 @@ Parameters
84
85
85
86
mc share upload --recursive play/mybucket/myprefix/
86
87
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
+
87
100
.. mc-cmd :: --expire, E
88
101
89
102
You can’t perform that action at this time.
0 commit comments