Last active
December 23, 2020 09:50
-
-
Save aTeamSolace/ece5585f4142b0948ce7cfb1da6c5748 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
imageFileData is a image array | |
var imgData = []; | |
for (var i = 0; i < imageFileData.length; i++) { | |
File mydata = imageFileData[i]; | |
String fileName = mydata.path.split('/').last; | |
imgData.add(MultipartFile.fromFileSync(mydata.path, filename: fileName)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment