[Bug] 数据库模式只有上传图片有问题。 #5254
Replies: 4 comments
-
📦 Deployment environmentDocker 📌 Software version1.42.1 💻 System environmentWindows 🌐 BrowserChrome 🐛 Problem descriptionMy network also couldn't open port 443, so I successfully set it up using other ports according to the method in #4745. Registering and logging in, sending messages, and uploading files other than pictures all work normally, but only when uploading pictures, "File Upload Failed" will be displayed, and the upload will fail, whether pasting pictures, using "Upload Pictures" or "Upload File", as long as it is an image file, it will not work. I looked at the network in debug mode and it says 📷 Steps to reproduceUpload pictures 🚦 Expected resultsSuccessfully uploaded 📝 Supplementary informationAttached here are my docker-compose and .env docker-compose.yml:
.env:
|
Beta Was this translation helpful? Give feedback.
-
👀 @CoREse Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Beta Was this translation helpful? Give feedback.
-
Hey, @CoREse! How's it going? I'm a bot here to help you with bugs, questions, and becoming a contributor. Let's squash those bugs together! 🤖 I found a similar closed issue that might help you resolve the problem with image uploads in LobeChat:
By following these steps, you should be able to resolve the issue and successfully upload images. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Beta Was this translation helpful? Give feedback.
-
我看到 #4840 也有同样的问题,应该就是一个问题,我也用的这个nginx proxy mannager,不知道为什么会这样,也不知道不换nginx proxy mannager的情况下要怎么解决。 |
Beta Was this translation helpful? Give feedback.
-
📦 部署环境
Docker
📌 软件版本
1.42.1
💻 系统环境
Windows
🌐 浏览器
Chrome
🐛 问题描述
我的网络也无法开启443端口,所以按照 #4745 里的方法成功地用其它端口搭建起来了。注册登录,发消息,上传除图片之外的文件都使用正常,但唯独上传图片,会显示“文件上传失败”,并且上传失败,无论是粘贴图片,还是使用“上传图片”或是“上传文件“,只要是图片文件就不行。我看了一下调试模式的网络,它会显示
PUT https://[mydomain:myport]/lobe/files/482143/11af242f-ad3f-40a1-b81d-e52d284d7483.JPG?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=qsFyo24b1yEvkHoGVA4t%2F20250101%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250101T064918Z&X-Amz-Expires=3600&X-Amz-Signature=9fe6cd4f2425fb5c07af96d0bbebf264fdf90aa332407487730a1418f76f0cfa&X-Amz-SignedHeaders=host&x-amz-acl=public-read&x-id=PutObject 403 (Forbidden)
。不知道是什么原因,请教一下诸位大佬。感谢!📷 复现步骤
上传图片
🚦 期望结果
成功上传
📝 补充信息
这里附上我的docker-compose和.env
docker-compose.yml:
.env:
Beta Was this translation helpful? Give feedback.
All reactions