cloudinary_public 0.3.1 copy "cloudinary_public: ^0.3.1" to clipboard
cloudinary_public: ^0.3.1 copied to clipboard

outdated

This package allows you to upload media files directly to cloudinary, without exposing your apiKey or secretKey.

cloudinary_public #

Build Status Coverage Status

This package allows you to upload media files directly to cloudinary, without exposing your apiKey or secretKey.

Getting started #

Add the dependency cloudinary_public: ^0.X.X (find recent version) to your project and start using it:

import 'package:cloudinary_public/cloudinary_public.dart';

Using Image Picker Plugin #

var image = await ImagePicker.pickImage(source: ImageSource.camera);

CloudinaryResponse response = await cloudinary.uploadFile(
    file: image,
    resourceType: CloudinaryResourceType.Image,
    filename: image.path, // optional if cache is false
);

print(response.secureUrl);

Using Multi Image Picker Plugin #

final images = await MultiImagePicker.pickImages(maxImages: 4);

List<CloudinaryResponse> uploadedImages = await cloudinary.multiUpload(
images
    .map(
      (image) => CloudinaryFile.fromFutureByteData(
        image.getByteData(),
        identifier: image.identifier,
      ),
    )
    .toList(),
);

print(uploadedImages[0].secureUrl);
108
likes
0
pub points
96%
popularity

Publisher

verified publisherdjade.net

This package allows you to upload media files directly to cloudinary, without exposing your apiKey or secretKey.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

dio, flutter

More

Packages that depend on cloudinary_public