Comments (10)
这个应该是文件过期了,现在聊天室文件30分钟后会过期
from lanying-im-web.
在Network里看下上面的文件请求的OPTIONS请求的服务器返回呢
from lanying-im-web.
from lanying-im-web.
from lanying-im-web.
改好了 @spencer17x
from lanying-im-web.
有些显示还是报403,
curl如下:
curl 'https://chat-file-chatroom-1-3.oss-cn-beijing.aliyuncs.com/chat_image_c26e892c-bceb-41eb-9a55-6d885eed5656?Expires=1630915562&OSSAccessKeyId=LTAI4FsWUXZx116ZTPtKv62D&Signature=GQlYpy1ML%2B0NRF9sjp82ztyjupk%3D&x-oss-traffic-limit=1638400'
-H 'Connection: keep-alive'
-H 'Pragma: no-cache'
-H 'Cache-Control: no-cache'
-H 'User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1'
-H 'Accept: image/avif,image/webp,image/apng,image/svg+xml,image/,/*;q=0.8'
-H 'Sec-Fetch-Site: cross-site'
-H 'Sec-Fetch-Mode: no-cors'
-H 'Sec-Fetch-Dest: image'
-H 'Referer: http://localhost:3000/'
-H 'Accept-Language: zh-CN,zh;q=0.9,en;q=0.8'
--compressed
from lanying-im-web.
应该不是过期的问题,我在你们提供的demo上运行是好的,自己的demo是有问题的。代码逻辑一致。 @theorix
from lanying-im-web.
from lanying-im-web.
我们demo是好的,指的是我们的demo上登录后进入同一个聊天室可以看到那个文件吗。 看截图里的Expires: 1630988582 就表示过期时间是2021-09-07 12:23:02
from lanying-im-web.
@theorix 哦哦,好的,清楚了。
from lanying-im-web.
Related Issues (6)
- asyncGetRosterIdList 什么时候更新数据? HOT 1
- getConversationList获取会话列表,内容和未读信息为空 HOT 4
- 如何上传录制的音频 HOT 8
- 聊天室内发送文件/图片参数说明 HOT 1
- 账号在另外的设备上登录了,原来的设备有监听吗 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lanying-im-web.