cloudinary_public
0.23.1, released 3 years ago by djade.net
Upload media files directly to Cloudinary without exposing API secrets.
Copyleft license
What it does
Allows Flutter apps to upload images and files directly to Cloudinary using unsigned upload presets. It also provides URL generation helpers for Cloudinary image transformations.
AI-written summary of version 0.23.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to upload user photos or videos directly to Cloudinary.
- You want to perform client-side image transformations via Cloudinary URL generation.
Skip it when
- You are using a backend other than Cloudinary.
- You need secure authenticated uploads requiring secret keys on the client side (which is not recommended).
Strengths
- Supports chunked uploads for files larger than 100MB.
- Provides upload progress monitoring.
- Includes image transformation and URL generation utilities.
Weaknesses
- Limited to Cloudinary backend services.
- Relies on unsigned upload presets configuration on Cloudinary's dashboard.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Requires setting up an unsigned upload preset on your Cloudinary account.
import 'package:cloudinary_public/cloudinary_public.dart';
final cloudinary = CloudinaryPublic('CLOUD_NAME', 'UPLOAD_PRESET', cache: false);
try {
CloudinaryResponse response = await cloudinary.uploadFile(
CloudinaryFile.fromFile(image.path, resourceType: CloudinaryResourceType.Image),
);
} on CloudinaryException catch (e) {
print(e.message);
}Works with
Packages commonly used together with cloudinary_public: ones it builds on, ones built on it, and its own family.