オブジェクトストレージでS3のvirtual-host形式のサポートなど (#6148)
* オブジェクトストレージでS3のvirtual-host形式のサポートなど * 表記揺れ * more simply * S3ならばs3ForcePathStyleしない
This commit is contained in:
parent
1ad8603cc2
commit
a2d3d22b6e
5 changed files with 27 additions and 15 deletions
|
|
@ -217,7 +217,8 @@ async function upload(key: string, stream: fs.ReadStream | Buffer, type: string,
|
|||
|
||||
const upload = s3.upload(params);
|
||||
|
||||
await upload.promise();
|
||||
const result = await upload.promise();
|
||||
if (result) logger.debug(`Uploaded: ${result.Bucket}/${result.Key} => ${result.Location}`);
|
||||
}
|
||||
|
||||
async function deleteOldFile(user: IRemoteUser) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue