Skip to content

v0.4.0

Latest
Compare
Choose a tag to compare
@iyifr iyifr released this 12 Dec 08:46
· 5 commits to main since this release

0.4.0 (Minor)

  • NEW readFiles utility to handle file uploads.
var files = await readFiles(event, fieldName: 'file', customFilePath: 'uploads');
// files is a List<Map<String, dynamic>> containing the info of the files uploaded.
// Example:
// [
//   {
//     'path': 'uploads/test.txt',
//     'mimeType': 'text/plain',
//     'originalname': 'test.txt',
//     'fieldName': 'file',
//     'size': 17,
//     'tempFilename': 'test.txt'
//   }
// ]

// EXAMPLE HANDLER.
router.post("/upload", (event) async {
  var files = await readFiles(event, fieldName: 'file', customFilePath: 'uploads');
  return files;
});
  • PATCHED readFiles utility to handle file uploads better.

Full Changelog: v0.3.2...v0.4.0

Full Changelog: v0.3.2...v0.4.0