uploadResource method
Uploads a file of resourceType
with fileName
to a folder
in your specified cloudName
resource
A CloudinaryUploadResource object with all necessary data
Response: Check all the attributes in the CloudinaryResponse to get the information you need... including secureUrl, publicId, etc. See also:
- CloudinaryUploadResource, to know which data to set
Implementation
/// See also:
///
/// * [CloudinaryUploadResource], to know which data to set
Future<CloudinaryResponse> uploadResource(
CloudinaryUploadResource resource) =>
_client.upload(
filePath: resource.filePath,
fileBytes: resource.fileBytes,
publicId: resource.publicId,
fileName: resource.fileName,
folder: resource.folder,
resourceType: resource.resourceType,
optParams: resource.optParams,
progressCallback: resource.progressCallback,
);