问题描述
获取到的信息{ "secret": "OeR0uiYKEeWpDsHHauicpJEUG8OL5zJbYz5M9wFcGEpel-XL", "thumbnail_size": { "thumbnail_size_height": 107, "thumbnail_size_width": 161 }, "thumbnail_file_length": 30088, "local": "/Users/xxoo/Library/Developer/CoreSimulator/Devices/6CC734C8-4BFE-49EC-954A-E8B38F7B479B/data/Containers/Data/Application/6C70F501-D0BA-4145-9FC0-C307771343E2/Library/appdata/akixie/chat/xxoo/messages/BE1C80532F8447348FFBBDD4B8D1A88B_1436426685152.jpg", "size": { "width": 1008, "height": 669 }, "thumbnail_displayname": "thumbnail_image.jpg", "filename": "image.jpg", "type": "img", "file_length": 508786, "thumbnail_local": "/Users/xxoo/Library/Developer/CoreSimulator/Devices/6CC734C8-4BFE-49EC-954A-E8B38F7B479B/data/Containers/Data/Application/6C70F501-D0BA-4145-9FC0-C307771343E2/Library/appdata/xxoo/chat/xxoo/messages/640D2F93F8E14797855366B9C2583205_1436426685171.jpg", "url": "http://a1.easemob.com/easemob- ... ot%3B}为什么使用secret 和uuid,使用文件下载接口一直报错404. 是secret不是文件上传方法的share-secret吗?
解决方案
404 是指服务器找不到请求的接口。uuid是文件唯一id,发送消息时需要用到指定是哪个文件。share-secret是上传资源文件时服务端返回来的,发消息时需要用到, 请参考下:http://www.easemob.com/docs/rest/files/