
let formInput = {
key :ToolsUtils.getDateTimerandom(),
type:'application/octet-stream',
// formInput对象如何配置请参考七牛官方文档“直传文件”一节
}
Rpc.uploadFile(image.path, res.token, formInput,function(event,xhr){
console.log("response,event:",event)
console.log("response,xhr:",xhr)
}).then((res)=>{
console.log("response,显示3:",res)
});
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
闭关修行中......