unsignedUploadResources method

Future<List<CloudinaryResponse>> unsignedUploadResources(
  1. List<CloudinaryUploadResource> resources
)

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>> unsignedUploadResources(
    List<CloudinaryUploadResource> resources) async {
  List<CloudinaryResponse> responses = [];
  if (resources.isNotEmpty) {
    responses = await Future.wait(resources
            .map((resource) async => await unsignedUploadResource(resource)))
        .catchError((err) => throw (err));
  }
  return responses;
}