Flutter Uploadcare Client
Uploadcare is a complete file handling platform that helps you ship products faster and focus on your business goals, not files. With Uploadcare, you can build an infrastructure, optimize content, conversions, load times, traffic, and user experience.
Example:
Note: you can omit privateKey
, but in this case only Upload API will be available. (CDN API also will be available).
How to use library:
UploadcareClient
has at the moment 4 API section
You can use each api section separately, for example:
Using with widgets
The library provides UploadcareImageProvider
for more effective use in the widget ecosystem, how to use image provider:
Cancellation
You can cancel the upload process by using CancelToken
, each method from the upload section (auto, base, multipart
) accepts cancelToken
property, which you can use to cancel the upload process. This feature works only with files upload because Uploadcare isn't supporting interrupt upload by URL