-
-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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] The latest version of LobeChat - server database edition cannot upload images #4673
Comments
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
@Liyuzhou01 你好! 我是Dosu,我是一个可以帮助你解决bug,回答问题,成为贡献者的机器人。我会在等待人类维护者的过程中帮助你。 I found a similar open issue related to image uploads in the LobeChat repository: [Bug] Uploading pictures shows payload garbled code, which might be relevant to your problem. This issue is still open and was last updated on October 16, 2024 [1]. Additionally, there is a discussion about a CORS error when uploading images with lowercase extensions: [Bug] 上传小写后缀图片(如.jpg, .png)报CORS错误。, which might also be related to your issue [2]. For your specific problem, ensure that your CORS settings are correctly configured in your R2 bucket, as incorrect settings can lead to upload issues. The LobeChat server handles CORS configurations by setting rules in the S3 storage service, allowing requests from specific domains and specifying allowed methods and headers [3][4]. |
👋 @{{ author }} |
This issue is closed, If you have any questions, you can comment and reply. |
📦 Environment
Docker
📌 Version
v1.31.0
💻 Operating System
Ubuntu
🌐 Browser
Edge
🐛 Bug Description
This error only occurs when uploading images; PDFs or other file types can be uploaded normally. The images can be seen in my R2 bucket.My API also works normally for image exchanges in other places.
📷 Recurrence Steps
No response
🚦 Expected Behavior
No response
📝 Additional Information
No response
The text was updated successfully, but these errors were encountered: