Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
prakashsvmx committed May 17, 2024
1 parent 965445f commit ab03979
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions examples/remove-incomplete-upload.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@
* limitations under the License.
*/

// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY and my-bucketname
// are dummy values, please replace them with original values.

// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY, my-bucketname, my-objectname are
// dummy values, please replace them with original values.
import * as Minio from 'minio'

const s3Client = new Minio.Client({
Expand All @@ -28,8 +27,8 @@ const s3Client = new Minio.Client({
// Note: It is a no-op in MinIO
// Can be used/tested with AWS S3.
try {
await s3Client.removeIncompleteUpload('test-bucket', 'incomplete-object-name')
await s3Client.removeIncompleteUpload('my-bucketname', 'my-objectname')
console.log('Success')
} catch (e) {
console.log(e)
console.log(e.message)
}

0 comments on commit ab03979

Please sign in to comment.