diff --git a/source/reference/minio-mc/mc-share-upload.rst b/source/reference/minio-mc/mc-share-upload.rst index a43e0874..b1c086e3 100644 --- a/source/reference/minio-mc/mc-share-upload.rst +++ b/source/reference/minio-mc/mc-share-upload.rst @@ -21,7 +21,7 @@ temporary URL expires after a configurable time limit. .. end-mc-share-upload-desc -Applications can perform a ``PUT`` to retrieve the object from the URL. +Applications can perform a ``PUT`` to upload an object using the URL. For more information on shareable object URLs, see the Amazon S3 documentation on :aws-docs:`Pre-Signed URLs @@ -104,11 +104,12 @@ Parameters .. code-block:: shell - curl ... -F key=ALIAS/ -F file=@ + curl ... -F key= -F file=@ Replace ```` with the path to the file to upload. - Replace ```` with the file once uploaded. + Replace ```` with the object name once uploaded. + This may include :term:`prefixes `. Global Flags ~~~~~~~~~~~~ @@ -176,7 +177,8 @@ Generate a URL to Upload Object(s) to the file to upload. - Replace the ```` string in the returned CURL command with the name - of the file in the bucket. + of the object in the bucket. + This may include :term:`prefixes `. You can use a shell script loop to recursively upload the contents of a filesystem directory to the S3-compatible service: @@ -192,12 +194,14 @@ Generate a URL to Upload Object(s) -F x-amz-credential=AAAA/us-east-1/s3/aws4_request \ -F x-amz-date=20200812T202556Z \ -F x-amz-signature=AAAA \ - -F bucket=mydata -F key=mydata/${file} -F file=@${file} + -F bucket=mybucket -F key=photos/${file} -F file=@${file} done - Defer to the documented best practices for your preferred scripting - language for iterating through files in a directory. + This example will upload each file in the directory ``~/Documents/photos/`` to + the ``mybucket`` bucket under the prefix ``photos``. Defer to the documented + best practices for your preferred scripting language for iterating through + files in a directory. Behavior --------