|
|
@ -24,7 +24,7 @@ class _ApiService implements ApiService { |
|
|
|
final queryParameters = <String, dynamic>{}; |
|
|
|
final queryParameters = <String, dynamic>{}; |
|
|
|
final _data = FormData(); |
|
|
|
final _data = FormData(); |
|
|
|
String fileName = data.path.split(Platform.pathSeparator).last; |
|
|
|
String fileName = data.path.split(Platform.pathSeparator).last; |
|
|
|
if(!fileName.contains(".jpeg")) |
|
|
|
if(!fileName.contains(".jpeg") && !fileName.contains(".mp4") && !fileName.contains(".png")) |
|
|
|
fileName += ".jpeg"; |
|
|
|
fileName += ".jpeg"; |
|
|
|
_data.files.add(MapEntry( |
|
|
|
_data.files.add(MapEntry( |
|
|
|
'file', |
|
|
|
'file', |
|
|
|