Skip to content
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

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

Closed
7FreezingPoint opened this issue Jul 2, 2024 · 3 comments
Closed

Comments

@7FreezingPoint
Copy link

Why this feature?

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

Suggested Solution

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

Additional Information

No response

@kubbot kubbot changed the title [FEATURE REQUEST] 上传能否支持前端直传 [FEATURE REQUEST] Can the upload support front-end direct transmission? Jul 2, 2024
@printlin
Copy link
Contributor

目前应该支持此功能,你可以通过业务代码上传后再将文件地址通过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
Copy link
Contributor

kubbot commented Jul 18, 2024

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
Copy link
Contributor

withchao commented Aug 8, 2024

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

@withchao withchao closed this as completed Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants