From 4e7e4cf898c03337f48e1578fa1910d200a00463 Mon Sep 17 00:00:00 2001 From: w-R <953969641@qq.com> Date: Fri, 7 Jan 2022 11:57:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0=E6=9B=B4?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/retrofit/retrofit_api.g.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/retrofit/retrofit_api.g.dart b/lib/retrofit/retrofit_api.g.dart index 70952c93..d221d3b7 100644 --- a/lib/retrofit/retrofit_api.g.dart +++ b/lib/retrofit/retrofit_api.g.dart @@ -24,7 +24,7 @@ class _ApiService implements ApiService { final queryParameters = {}; final _data = FormData(); String fileName = data.path.split(Platform.pathSeparator).last; - if(!fileName.contains(".jpeg")) + if(!fileName.contains(".jpeg") && !fileName.contains(".mp4") && !fileName.contains(".png")) fileName += ".jpeg"; _data.files.add(MapEntry( 'file',