DeqiuTseng
void _uploadImage() async{ EasyLoading.show(status: "正在上传图片"); LCFile file = await LCFile.fromPath('oldgoods', _oldGoodsImageFilePath); file.save().then((value) { EasyLoading.dismiss(); _submitForm(file); }).catchError((error) { EasyLoading.showToast("上传文件失败"); }); } void _submitForm(LCFile file){ S…
void _submitForm(LCFile file){ LCObject object = new LCObject("oldGoods"); object["name"] = goodName; // String object["des"] = goodDes; // String object["uid"] = onValue.androidId; //String object.add("attachments", file); object.save().then((object) { //返回到列表页 _goodsNameController.text = ""; _good…
没看出来有价值的错误信息,而且我是图片上传成功了的,就是object.add("attachments", file) 的时候发生了错误,然后我看了表数据除了attachments没有保存,其它字段是保存成功了
好的,多谢,我用的是0.3.9版本,我更新一下
现在上传成功,官方文档没有说明如何显示图片及获取图片url
上传完成图片url我知道嘞,我现在要获取商品列表,如何获取url?