DioError [DioErrorType.RESPONSE]: Http status error [500]

I use MultipartFile.fromBytes instead of MultipartFile.fromFile

For example :

from this :

final file = await MultipartFile.fromFile(filePath);

to this :

final file = MultipartFile.fromBytes(File(filePath).readAsBytesSync(), filename: filePath.split("/").last);

原文链接

你可能感兴趣的:(DioError [DioErrorType.RESPONSE]: Http status error [500])