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