We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
你好,上传文件的接口是错的,media直接传的是文件路径,没有filename、filelength、content-type等
The text was updated successfully, but these errors were encountered:
@carto1111 方便把你能重现问题的代码展示一下吗?
Sorry, something went wrong.
大师,SDK源码里 src/Senparc.Weixin.Work/Senparc.Weixin.Work/AdvancedAPIs/Media/MediaApi.cs 这里面的上传方法,教程里面都是直接调用传路径进来,看来是少了media文件标识,微信返回媒体文件为空。 ///
}
@carto1111 您好,您指的接口有错误是,https://developer.work.weixin.qq.com/document/path/95178,这个接口么 确实,我们现在的路径是,/cgi-bin/media/upload?access_token={0}&type={1}
而企业微信里是,/cgi-bin/media/upload_attachment?access_token=ACCESS_TOKEN&media_type=TYPE&attachment_type=1
还有POST的请求包中,form-data中媒体文件标识,应包含有 filename、filelength、content-type等信息
您是说如下图的意思么
No branches or pull requests
问题描述
你好,上传文件的接口是错的,media直接传的是文件路径,没有filename、filelength、content-type等
模块对应的 .net 版本
开发环境
缓存环境
系统环境
The text was updated successfully, but these errors were encountered: