mirror of
https://github.com/cool-team-official/cool-admin-midway-packages.git
synced 2025-12-11 13:52:50 +00:00
AWS如果不设置fields,则设置为public-read
This commit is contained in:
parent
f671df7c7c
commit
161432bb99
@ -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",
|
||||
|
||||
@ -333,7 +333,7 @@ export class CoolFile {
|
||||
if (!conditions) {
|
||||
conditions = [{ acl: 'public-read' }, { bucket }];
|
||||
}
|
||||
if (!fields) {
|
||||
if (_.isEmpty(fields)) {
|
||||
fields = {
|
||||
acl: 'public-read',
|
||||
};
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@cool-midway/file",
|
||||
"version": "7.0.0",
|
||||
"version": "7.0.2",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"typings": "index.d.ts",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user