Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions source/reference/minio-mc/mc-share-upload.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -84,6 +85,18 @@ Parameters

mc share upload --recursive play/mybucket/myprefix/

.. mc-cmd:: --content-type, T
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if you can specify more than one accepted content type with multiple --content-type arguments

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

per eng, you can only specify one


*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>`__.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I am being pedantic.


.. mc-cmd:: --expire, E


Expand Down