retrofit.dart
retrofit.dart copied to clipboard
Support single MultipartFile, not only List<MultipartFile>
Cannot pass single MultipartFile
as Part()
param. Getting generator error Exception: toJson() method have to add to MultipartFile
.
I can't use File
type, because generator uses Platform.pathSeparator
which throws in web, and can't use List<int>
, because it may be a different file extension type.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@trevorwang Is there no progress on this problem?
Dio supports single file sending - https://pub.dev/packages/dio#sending-formdata