store method

Future<String> store(
  1. String folder
)

this function will store the file in your project storage folder

RequestFile image = req.input('image');
String filename = await image.store();

Implementation

Future<String> store(String folder) async {
  return Storage().put(folder, await bytes, extension: extension);
}