Browse Source

文件上传更改

ff_new
w-R 3 years ago
parent
commit
7c4b4f7227
  1. 1
      lib/retrofit/retrofit_api.g.dart

1
lib/retrofit/retrofit_api.g.dart

@ -27,6 +27,7 @@ class _ApiService implements ApiService {
'file', 'file',
MultipartFile.fromFileSync(data.path, MultipartFile.fromFileSync(data.path,
filename: data.path.split(Platform.pathSeparator).last))); filename: data.path.split(Platform.pathSeparator).last)));
print("filename:${data.path}");
if (folderId != null) { if (folderId != null) {
_data.fields.add(MapEntry('folderId', folderId.toString())); _data.fields.add(MapEntry('folderId', folderId.toString()));
} }

Loading…
Cancel
Save