dio icon indicating copy to clipboard operation
dio copied to clipboard

Upload file from bytes on android

Open maikelohcfg opened this issue 3 years ago • 3 comments

Info Value
Platform Name android
Platform Version 2.5.2
Dio Version 4.0.0
Android Studio 2020.3
Repro rate all the time (100%)

Issue Description and Steps

Hello everyone i try to upload multiple images from bytes source on Android, on debug i can see the file on formdata but on server i don't receive the file parameter and data, others fields submitted on the request reach the server properly but the file parameters is missing

formData.files.addAll([ MapEntry( 'evidences[]', MultipartFile.fromBytes( snapshot, filename: const Uuid().v4(), ), ), ]);

maikelohcfg avatar Oct 22 '21 14:10 maikelohcfg

same issue,I use MultipartFile.fromBytes will cause DioError [DioErrorType.other]: HttpException: Read failed, uri=*** when I change to use fromFile ,It's ok , any dio vesion

ccchp avatar Nov 17 '21 08:11 ccchp

Same as IOS

Hwan-seok avatar May 17 '22 08:05 Hwan-seok