fix: uploadBfs

This commit is contained in:
bggRGjQaUbCoE
2024-10-31 09:48:24 +08:00
parent aaa9e45299
commit 23bd32a35c
4 changed files with 18 additions and 6 deletions

View File

@@ -315,7 +315,10 @@ class _WhisperDetailPageState extends State<WhisperDetailPage> {
);
if (pickedFile != null) {
SmartDialog.showLoading(msg: '正在上传图片');
dynamic result = await MsgHttp.uploadBfs(pickedFile.path);
dynamic result = await MsgHttp.uploadBfs(
path: pickedFile.path,
biz: 'im',
);
if (result['status']) {
int imageSize = await File(pickedFile.path).length();
String mimeType = lookupMimeType(pickedFile.path)