Skip to content

Instantly share code, notes, and snippets.

@aTeamSolace
Last active December 23, 2020 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aTeamSolace/ece5585f4142b0948ce7cfb1da6c5748 to your computer and use it in GitHub Desktop.
Save aTeamSolace/ece5585f4142b0948ce7cfb1da6c5748 to your computer and use it in GitHub Desktop.
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