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",
|
"name": "@cool-midway/file",
|
||||||
"version": "7.0.0",
|
"version": "7.0.2",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "index.d.ts",
|
"typings": "index.d.ts",
|
||||||
|
|||||||
@ -333,7 +333,7 @@ export class CoolFile {
|
|||||||
if (!conditions) {
|
if (!conditions) {
|
||||||
conditions = [{ acl: 'public-read' }, { bucket }];
|
conditions = [{ acl: 'public-read' }, { bucket }];
|
||||||
}
|
}
|
||||||
if (!fields) {
|
if (_.isEmpty(fields)) {
|
||||||
fields = {
|
fields = {
|
||||||
acl: 'public-read',
|
acl: 'public-read',
|
||||||
};
|
};
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@cool-midway/file",
|
"name": "@cool-midway/file",
|
||||||
"version": "7.0.0",
|
"version": "7.0.2",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"typings": "index.d.ts",
|
"typings": "index.d.ts",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user