openimsdk / open-im-server

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

[FEATURE REQUEST] Can the upload support front-end direct transmission? #2383

Closed 7FreezingPoint closed 1 month ago

7FreezingPoint commented 2 months ago

Why this feature?

目前上传不管是到minio、oss、cos等渠道,都需要经过服务端

Suggested Solution

希望服务端适配存储厂商签名方案,返回前端签名由前端直接调用存储厂商完成上传,节省服务端带宽

Additional Information

No response

printlin commented 1 month ago

目前应该支持此功能,你可以通过业务代码上传后再将文件地址通过openIM发送即可,参考链接: https://docs.openim.io/zh-Hans/sdks/api/message/createFileMessageByURL https://docs.openim.io/zh-Hans/sdks/api/message/createImageMessageByURL https://docs.openim.io/zh-Hans/sdks/api/message/sendMessageNotOss

kubbot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


This function should be supported at present. You can upload it through the business code and then send the file address through openIM. Reference link: https://docs.openim.io/zh-Hans/sdks/api/message/createFileMessageByURL https://docs.openim.io/zh-Hans/sdks/api/message/createImageMessageByURL https://docs.openim.io/zh-Hans/sdks/api/message/sendMessageNotOss

withchao commented 1 month ago

File browsing does not go through the server, directly connect to s3