From be1bf31a92e133159fff7ebb9dc7beb2fc1ebdfa Mon Sep 17 00:00:00 2001 From: Clarkie Date: Wed, 20 Jan 2016 11:36:04 +0000 Subject: [PATCH] remove the 'public-read' acl as the default. Prefer to use bucket polic permissions over acls --- s3upload.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/s3upload.js b/s3upload.js index d89e37f..c713614 100644 --- a/s3upload.js +++ b/s3upload.js @@ -143,8 +143,6 @@ S3Upload.prototype.uploadToS3 = function(file, signResult) { var val = uploadRequestHeaders[key]; xhr.setRequestHeader(key, val); }); - } else { - xhr.setRequestHeader('x-amz-acl', 'public-read'); } this.httprequest = xhr; return xhr.send(file);