uploadcare_client
7.2.1, released 10 months ago by konstantinkai.dev
A Dart library for working with the Uploadcare REST API for file uploads, analysis, and transformations.
What it does
Provides a client for the Uploadcare REST API to handle file uploads (base, chunked, URL, isolated), media processing, video encoding, document conversion, and image/file transformations for web and mobile apps.
AI-written summary of version 7.2.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to integrate Uploadcare file storage and CDN into a Dart or Flutter application.
- You require advanced image transformations, cropping, or video processing via Uploadcare URLs.
- You need robust file uploading features with progress tracking, cancellation, and chunked multipart uploads.
Skip it when
- You are using a completely different backend or file storage provider like Firebase Storage or AWS S3 directly.
- You do not need an external file handling and optimization platform.
Strengths
- Comprehensive coverage of Uploadcare REST API features including uploads, transformations, groups, and webhooks.
- Supports chunked multipart uploads and background uploads in isolates.
- Extensive support for image and file transformation operations.
Weaknesses
- Tied specifically to the Uploadcare platform.
- Requires managing API public and private keys.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 7
Simply add the dependency to pubspec.yaml and initialize the client with your Uploadcare public key and API version.
final client = UploadcareClient.withSimpleAuth(
publicKey: 'public_key',
apiVersion: 'v0.7',
);
final fileId = await client.upload.fromUrl('https://files.st/path_to_file');Alternatives
Packages that do the same job and could replace uploadcare_client.
- cloudinary_sdk
Pure Dart SDK for Cloudinary API, enabling signed/unsigned uploads, deletes, and URL generation.
77Compare - cloudinary
Pure Dart Cloudinary SDK for upload, admin, search, and signed delivery URLs.
71Compare - chunked_uploader
Upload files to a server in chunks using Dio for mobile, desktop, and web.
42Compare
Works with
Packages commonly used together with uploadcare_client: ones it builds on, ones built on it, and its own family.
- cryptouploadcare_client depends on itProvides SHA, MD5, and HMAC hashing functions for Dart.
- mimeuploadcare_client depends on itUtilities to resolve MIME types from file names, magic bytes, and to parse multipart streams.
- webuploadcare_client depends on itLightweight bindings for browser APIs via JS interop
- http_parseruploadcare_client depends on itA platform-independent package for parsing and serializing HTTP formats.
- equatableuploadcare_client depends on itProvides value‑based equality for Dart objects without manual == and hashCode.