From f652226cf71c867f51f88682cbd3df157fe109cf Mon Sep 17 00:00:00 2001 From: Andrea Longo Date: Thu, 14 Aug 2025 14:08:58 -0600 Subject: [PATCH 1/2] add mc share upload --content-type --- 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 b1c086e35..b56126292 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 From 7fadc0f98ac287500cbc2a65d6a34fce98e123a6 Mon Sep 17 00:00:00 2001 From: Andrea Longo Date: Thu, 14 Aug 2025 14:14:52 -0600 Subject: [PATCH 2/2] rst is not md --- source/reference/minio-mc/mc-share-upload.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/reference/minio-mc/mc-share-upload.rst b/source/reference/minio-mc/mc-share-upload.rst index b56126292..5eae9d308 100644 --- a/source/reference/minio-mc/mc-share-upload.rst +++ b/source/reference/minio-mc/mc-share-upload.rst @@ -90,7 +90,7 @@ Parameters *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`. + 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.