uploadResources method
This function uploads multiples files by calling uploadFile repeatedly
filePaths
the list of paths to the files to upload
filesBytes
the list of byte array of the files to uploaded
Implementation
Future<List<CloudinaryResponse>> uploadResources(
List<CloudinaryUploadResource> resources) async {
List<CloudinaryResponse> responses = [];
if (resources.isNotEmpty) {
responses = await Future.wait(
resources.map((resource) async => await uploadResource(resource)))
.catchError((err) => throw (err));
}
return responses;
}