AWS如果不设置fields,则设置为public-read

This commit is contained in:
cool 2023-11-17 17:12:38 +08:00
parent f671df7c7c
commit 161432bb99
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@cool-midway/file",
"version": "7.0.0",
"version": "7.0.2",
"description": "",
"main": "dist/index.js",
"typings": "index.d.ts",

View File

@ -333,7 +333,7 @@ export class CoolFile {
if (!conditions) {
conditions = [{ acl: 'public-read' }, { bucket }];
}
if (!fields) {
if (_.isEmpty(fields)) {
fields = {
acl: 'public-read',
};

View File

@ -1,6 +1,6 @@
{
"name": "@cool-midway/file",
"version": "7.0.0",
"version": "7.0.2",
"description": "",
"main": "index.js",
"typings": "index.d.ts",