|
|
@ -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())); |
|
|
|
} |
|
|
|
} |
|
|
|