mirror of
https://github.com/minio/docs.git
synced 2025-11-07 15:06:31 +03:00
add mc share upload --content-type (#1495)
Document `mc share upload --content-type`. Thank you @0xMALVEE 🎉
This commit is contained in:
@@ -46,9 +46,10 @@ documentation on :aws-docs:`Pre-Signed URLs
|
|||||||
.. code-block:: shell
|
.. code-block:: shell
|
||||||
:class: copyable
|
:class: copyable
|
||||||
|
|
||||||
mc [GLOBALFLAGS] share upload \
|
mc [GLOBALFLAGS] share upload \
|
||||||
[--expire "string"] \
|
[--content-type "string"] \
|
||||||
[--recursive] \
|
[--expire "string"] \
|
||||||
|
[--recursive] \
|
||||||
ALIAS
|
ALIAS
|
||||||
|
|
||||||
.. include:: /includes/common-minio-mc.rst
|
.. include:: /includes/common-minio-mc.rst
|
||||||
@@ -84,6 +85,18 @@ Parameters
|
|||||||
|
|
||||||
mc share upload --recursive play/mybucket/myprefix/
|
mc share upload --recursive play/mybucket/myprefix/
|
||||||
|
|
||||||
|
.. mc-cmd:: --content-type, T
|
||||||
|
|
||||||
|
*Optional* Restrict uploads to only requests with a specific `Content-Type <https://www.w3.org/Protocols/rfc1341/4_Content-Type.html>`__ header.
|
||||||
|
|
||||||
|
Specify a string with the desired ``Content-Type`` value to accept.
|
||||||
|
For example, ``video/mp4``.
|
||||||
|
|
||||||
|
If configured, clients using the generated URL must include a ``Content-Type`` header for the specified type.
|
||||||
|
MinIO rejects requests that do not have the correct ``Content-Type`` header.
|
||||||
|
|
||||||
|
Content types are also known as `media types <https://www.iana.org/assignments/media-types/media-types.xhtml>`__.
|
||||||
|
|
||||||
.. mc-cmd:: --expire, E
|
.. mc-cmd:: --expire, E
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user