From 9ce81daa0f5089abb0fb8dd21a7b7989c68fa654 Mon Sep 17 00:00:00 2001 From: "Vivekanandan Sakthivelu (TMS)" Date: Wed, 23 Sep 2020 16:41:40 +0530 Subject: [PATCH] Removed S3 ACL to adhere to defult role permission --- lib/index.js | 1 - package.json | 45 ++++++++++++++++++++++----------------------- 2 files changed, 22 insertions(+), 24 deletions(-) diff --git a/lib/index.js b/lib/index.js index 4765fc2..cc82fcb 100644 --- a/lib/index.js +++ b/lib/index.js @@ -27,7 +27,6 @@ module.exports = { { Key: `${path}${file.hash}${file.ext}`, Body: Buffer.from(file.buffer, 'binary'), - ACL: 'public-read', ContentType: file.mime, ...customParams, }, diff --git a/package.json b/package.json index 53d4629..ef1587c 100644 --- a/package.json +++ b/package.json @@ -1,24 +1,23 @@ { - "name": "strapi-provider-upload-aws-s3-cdn", - "version": "0.0.1", - "description": "AWS S3 provider for strapi upload with cdn (cloudfront)", - "directories": { - "lib": "./lib" - }, - "main": "./lib", - "dependencies": { - "aws-sdk": "^2.758.0", - "lodash": "^4.17.20" - }, - "strapi": { - "isProvider": true - }, - "engines": { - "node": ">=10.10.0", - "npm": ">=6.0.0" - }, - "license": "MIT", - "scripts": { - "test": "echo \"no tests yet\"" - } - } \ No newline at end of file + "name": "strapi-provider-upload-aws-s3-cdn", + "version": "1.0.3", + "description": "", + "main": "lib/index.js", + "directories": { + "lib": "lib" + }, + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/VivekanandanS/strapi-provider-upload-aws-s3-cdn.git" + }, + "author": "vivekanandansakthivelu", + "license": "MIT", + "bugs": { + "url": "https://github.com/VivekanandanS/strapi-provider-upload-aws-s3-cdn/issues" + }, + "homepage": "https://github.com/VivekanandanS/strapi-provider-upload-aws-s3-cdn#readme" + +} \ No newline at end of file