开发者社区> 问答> 正文

触动精灵怎么提交表单上传图片啊? 卡在上传这里了、请大神教一下。

post=strkey..strpolicy..strOSSAccessKeyId..strsignature..success_action_status..strimg local sz = require("sz") local yunhttp = require("szocket.http") local response_body = {} local post_data =post ;
res, code = yunhttp.request{
url = host,
method = "POST",
headers =
{
['Content-Type']='multipart/form-data; boundary='..boundary,
["Content-Length"] = #post_data,
},
source = ltn12.source.string(post_data),
sink = ltn12.sink.table(response_body)
}

dialog(code, time)

展开
收起
游客vltywckm22v74 2020-08-22 09:37:39 972 0
0 条回答
写回答
取消 提交回答
问答地址:
问答排行榜
最热
最新

相关电子书

更多
3D动画的菜谱式灯光与云渲染 立即下载
《如何制作一个水平仪》 立即下载
微信广告引擎与播放节奏算法实践 立即下载