This commit is contained in:
fyears 2021-10-21 09:36:34 +08:00
parent 9abc584eb9
commit e1b5b977b7
2 changed files with 2 additions and 2 deletions

View File

@ -16,4 +16,3 @@ Remote service in support list:
- [ ] AWS S3 - [ ] AWS S3
- [ ] webdav - [ ] webdav

View File

@ -152,7 +152,8 @@ export default class SaveRemotePlugin extends Plugin {
Bucket: this.settings.s3BucketName, Bucket: this.settings.s3BucketName,
Key: `${fileOrFolder.path}`, Key: `${fileOrFolder.path}`,
Body: Buffer.from(arrContent), Body: Buffer.from(arrContent),
ContentType: mime.contentType(`${fileOrFolder.path}`) || undefined ContentType:
mime.contentType(`${fileOrFolder.path}`) || undefined,
}) })
); );
} }