uploadUrl<T> method
上传文件
Implementation
Future<T> uploadUrl<T>() async {
if (_formData == null) {
throw Exception(
"_formData mast not null e.g FormData.fromMap({'file': await MultipartFile.fromFile('filePath./text2.txt', filename: 'text2.txt')}");
}
if (_url.isEmpty) {
throw Exception("_url mast be not null!!!");
}
return await NetworkManager.instance.upLoadFile<T>(_url, _formData!,
onSendProgressCB: _progressCallBack,
options: _options,
queryParameters: _params);
}