You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/pages/[platform]/build-a-backend/storage/upload-files/index.mdx
+2-1
Original file line number
Diff line number
Diff line change
@@ -653,7 +653,6 @@ Option | Type | Description |
653
653
| -- | -- | ----------- |
654
654
| getProperties | boolean | Whether to retrieve properties for the uploaded object using theAmplify.Storage.getProperties() after the operation completes. When set to true the returned item will contain additional info such as metadata and content type. |
655
655
| useAccelerateEndpoint | boolean | Whether to use accelerate endpoint. <br/><br/> Read more at [Transfer Acceleration](/[platform]/build-a-backend/storage/upload-files/#transfer-acceleration)|
656
-
| expectedBucketOwner | string | Optional | The account ID that owns requested bucket. |
| contentDisposition | string | — | Specifies presentational information for the object. <br/><br/> Read more at [Content-Disposition documentation](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition)|
1580
1579
| metadata | map\<string\>| — | A map of metadata to store with the object in S3. <br/><br/> Read more at [S3 metadata documentation](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingMetadata.html#UserMetadata)|
1581
1580
| useAccelerateEndpoint | boolean | false | Whether to use accelerate endpoint. <br/><br/> Read more at [Transfer Acceleration](/[platform]/build-a-backend/storage/upload-files/#transfer-acceleration)|
1581
+
| expectedBucketOwner | string | - | The account ID that owns requested bucket. |
1582
+
| preventOverwrite | boolean | false | If set, the library checks if an object with the same key already exists before completing the upload. If exists, a `Precondition Failed` error will be thrown |
0 commit comments