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',