-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
[Bug] 服务端数据库版本,上传图片报错 #5331
Comments
👀 @jfjlhc Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
报错如下: |
可我明明截图就是PNG格式。而且我试过另存为图片再发送 |
But I clearly see that the screenshot is in PNG format. And I tried saving it as a picture and then sending it |
@jfjlhc 你好!我是Dosu,一个可以帮助你解决问题、回答疑问并成为贡献者的机器人。感谢你的问题,请放心,我会在等待人类维护者的期间帮助你解决这个问题。 I found a similar unsolved discussion regarding issues with image uploads in the database mode: [Bug] 数据库模式只有上传图片有问题。 [1]. This might be related to the problem you're experiencing. For your specific issue, ensure that your S3 storage configuration is correctly set up, as this is critical for image uploads. Key environment variables include Additionally, verify that your Docker setup is correctly configured to support these environment variables, as any misconfiguration could impact the image upload functionality. If the problem persists, consider checking the error handling mechanisms in place for image uploads, which include notifications for network errors and file type checks [4]. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
没有得到解决,我的cors域配置也很合理: |
你传上去的图片看起来似乎没有正常显示,兜底到灰图了,请先检查下你的图片展示问题? |
Your pictures don’t seem to be displayed properly. Please check your picture display issues first. |
这个问题似乎是因为lobechat数据库版本的上传图片功能是直接在messages里传递s3存储里图片的直链url,而不是图片本身。楼主调用的claude模型不支持图片url,必须要上传图片文件本身,所以报错。希望官方可以解决 |
This problem seems to be because the upload image function of the lobechat database version directly passes the direct URL of the image in the S3 storage in messages, rather than the image itself. The claude model called by the poster does not support image URLs, and the image file itself must be uploaded, so an error is reported. I hope the official can solve it |
📦 Environment
Docker
📌 Version
V1.44.0
💻 Operating System
Windows
🌐 Browser
Chrome, Edge, Firefox
🐛 Bug Description
部署好了之后,上传图片老报错,我的配置如下:
📷 Recurrence Steps
No response
🚦 Expected Behavior
No response
📝 Additional Information
No response
The text was updated successfully, but these errors were encountered: