-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
R2图床插件上传的PNG文件,Content-Type是application/octet-stream #118
Comments
R2 的 SDK 我用的是官方的 SDK @aws-sdk/client-s3,应该不太会出现这个问题才对。 上传的错误日志有吗?可以贴一下。 我手头暂时没有 R2 的图床进行测试,你可以对照你的日志错误在官方 github issue 中找找答案,如果确认是版本的问题,我这边可以尝试升级一下 官方sdk 的版本 |
@aws-sdk/client-s3 不会自动检测Content-Type |
const mime = require('mime-types'); // 引入 mime-types 库 async uploadImg(imgBuffer, fileName) {
} |
非常感谢。 |
呃 ,我是问的deepseek |
将 |
你当前使用的Elog版本
0.14.7
Elog配置文件
发生了什么?
R2图床插件上传的PNG文件,Content-Type是application/octet-stream,而不是有效的值
Elog错误日志
附加信息
No response
The text was updated successfully, but these errors were encountered: