s3.putObject({ Bucket: bucketName, Key: fileName, Body: file, ACL: \'bucket-owner-full-control\' }, function(err, data) { i
By default, when you upload the file with same name. It will overwrite the existing file. In case you want to have the previous file available, you need to enable versioning in the bucket.