flutter中如何上传图片?

flutter中如何上传图片?

flutter中如何上传图片?

两种方式

http库上传

var request = new http.MultipartRequest("POST", url);
request.fields['user'] = 'someone@somewhere.com';
request.files.add(http.MultipartFile.fromPath(
    'package',
    'build/package...

点击查看剩余70%

{{collectdata}}

网友评论0