openimsdk / open-im-server

IM Chat
https://openim.io
Apache License 2.0
13.93k stars 2.45k forks source link

[Other]: Regarding the storage of chat image files #1208

Closed duola297 closed 1 year ago

duola297 commented 1 year ago

What would you like to share?

"By default, Minio storage is used, but it can also be configured to use COS (Tencent Cloud Object Storage) or OSS (Alibaba Cloud Object Storage Service). Recently, my colleague implemented storage using Huawei Cloud OBS (Object Storage Service). I attempted to add the relevant configuration information to the configuration file and changed 'enable' to 'obs.' After compiling and starting the service, I noticed that image files could still be sent successfully. However, when viewing the related chat records, I found that the file paths remained the same as before. Could you please advise on how to address this issue?" f26aaad2fb2cc293a401e679d67b57e

Additional information

No response

withchao commented 1 year ago

The URL returned by uploading is API specific and will be redirected to the real path during access.

duola297 commented 1 year ago

So, if I've switched to OBS, and I'm able to send image files successfully, does that mean it's a success? Is there a way for me to view the actual path?

withchao commented 1 year ago

Access the returned URL and reset it to the real address.