cloudinary / cloudinary_flutter

MIT License
8 stars 3 forks source link

Can we upload the image directly from flutter right now? #10

Closed tahaaslam1 closed 1 year ago

tahaaslam1 commented 1 year ago

I'm trying this, it is returning a url but isn't working... `

void uploadImagesOnCloudinary({required List<XFile> selectedImages}) {
CloudinaryContext.cloudinary = Cloudinary.fromCloudName(cloudName: 'dqknjsdco', apiKey: '564226981763713');

final check = CloudinaryContext.cloudinary.image(selectedImages.first.path);

logger.i(check);
} 

`

URL : https://res.cloudinary.com/dqknjsdco/image/upload/v1/data/user/0/com.example.ascension_mobile_app/cache/image_picker4292500378126089092.jpg?_a=AOCcQKNK0

michalkcloudinay commented 1 year ago

Hi @tahaaslam1,

The flutter SDK currently doesn't support the upload API. You can use the SDK to build delivery URLs with transformations, however, the file will need to exist on your Cloudinary account in order for the URL to work.

You can read more about the SDK here:https://cloudinary.com/documentation/flutter_integration

Please let us know if you have any further questions.

Thanks

adimiz1 commented 1 year ago

Closing this issue, if you have further questions please open a new issue