nixrajput / cloudinary-dart

A dart package to integrate Cloudinary API in Dart and Flutter.
https://pub.dev/packages/cloudinary
MIT License
8 stars 5 forks source link

URL Upload #1

Closed alexobviously closed 1 year ago

alexobviously commented 1 year ago

The cloudinary upload endpoints actually allow file to be a URL for remote upload: https://cloudinary.com/documentation/upload_images#upload_from_a_remote_url

This PR allows the file param to be a URL - if the string starts with http:// or https://, it is just passed as a string instead of being converted to a local path.