Cloudinary: An extension to upload files to Cloudinary

1.Introduction

Description: Cloudinary extension to upload files and do various functions with customization
Latest Version: 1.1
Last Updated: 2021-04-02T18:30:00Z
Released: 2021-04-01T18:30:00Z

2.Blocks

image
image

3.Documentation

  • OnError
    Event invoked when any error occurs
    image
    errorMessage ~ String
  • GotResponse
    Event invoked after getting response
    image
    response ~ YailDictionary
  • OnUploadProgress
    Event invoked when uploading progress changes
    image
    progress ~ int
  • Initialize
    Initialize Cloudinary with specified credentials
    image
  • Upload
    Uploads given file with specified options (if any)
    image
    path ~ String
    uploadOptions ~ YailDictionary
    You can find available upload options here.
  • Delete
    Deletes the given file
    image
    publicId ~ String
  • GenerateImage
    Generates image from text
    image
    text ~ String
    optionsMap ~ YailDictionary
    You can find available options here.

4.Downloads

Download Link: com.sunny.Cloudinary.aix (369.0 KB)

5.Liked my work/Want to donate

Thank you. :heart:
Kindly PM me.

Hope it helps!

12 Likes

1 Like

Could you please provide example blocks of how/what to set uploadOptions?

My efforts so far just crash the app (in Companion mode)

I have tried:

This crashes for both, or either. The file uploads just fine to the root folder using an empty dictionary

image

Wow, That's important extension :star_struck: :star_struck: :star_struck:
Good Job :sunglasses: :+1:

Thank you for bug report.
This works:
image


ChangeLog Version 1.1

New Blocks
image

Changes

  • Renamed OnUploadCompleted method to GotResponse
  • Some internal changes

Bug Fixes

  • Fixed bug in uploadOptions param in Upload method
2 Likes

Thank you, it works now :slight_smile:

1 Like

Event on Error not working.. i tried to overwrite image with parameter false but i didnt get any error message

1 Like

Can you show your blocks?

1 Like

1 Like

Well, seems like you are posting kodular blocks. All the builders have their own respective forums and I prefer you to post these on Kodular community,

Regards,

yeah i know. its just about extension.

1 Like

But, I suggest you to please post appinventor blocks

:sweat_smile:

You should at least test in AppInventor, just in case it works with AppInventor but not with Kodular....

This extension has not been "published" on the kodular community, there could be a reason for that....

4 Likes

Blocks are correct and there is no issue.

2 Likes

Hello.
What should I put in api key, cloud and secret key?

1 Like

You will get that from cloudinary dashboard.

2 Likes

Thank you! :slight_smile:

1 Like

Please Add Url Option. I mean Got Response & Url Block.

Did you try to check the response received from GotResponse event ?

MIT can redistribute this extension:

I, vknow360 aka Sunny Gupta, attest that I am the author of the Cloudinary extension , grant that the extension included in this project is free and that MIT has a non-exclusive irrevocable license to republish the extension as part of the project file for the purposes of the MIT App Inventor Appathon 2021.

Enjoy, and best wishes :+1:

5 Likes