From 779f5945598ee4f9903da04bf9623606fa896c80 Mon Sep 17 00:00:00 2001 From: Andrea Longo Date: Fri, 15 Aug 2025 07:49:30 -0600 Subject: [PATCH] add mc share upload --content-type (#1495) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Document `mc share upload --content-type`. Thank you @0xMALVEE 🎉 --- source/reference/minio-mc/mc-share-upload.rst | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/source/reference/minio-mc/mc-share-upload.rst b/source/reference/minio-mc/mc-share-upload.rst index b1c086e3..5eae9d30 100644 --- a/source/reference/minio-mc/mc-share-upload.rst +++ b/source/reference/minio-mc/mc-share-upload.rst @@ -46,9 +46,10 @@ documentation on :aws-docs:`Pre-Signed URLs .. code-block:: shell :class: copyable - mc [GLOBALFLAGS] share upload \ - [--expire "string"] \ - [--recursive] \ + mc [GLOBALFLAGS] share upload \ + [--content-type "string"] \ + [--expire "string"] \ + [--recursive] \ ALIAS .. include:: /includes/common-minio-mc.rst @@ -84,6 +85,18 @@ Parameters mc share upload --recursive play/mybucket/myprefix/ +.. mc-cmd:: --content-type, T + + *Optional* Restrict uploads to only requests with a specific `Content-Type `__ 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 `__. + .. mc-cmd:: --expire, E