Free ImgBBHost, Upload images to ImgBB

🧩 ImgBBHost

An extension for MIT App Inventor 2.
Upload images to ImgBB. Prepares images from any source by copying them to app's private storage. No external storage write needed. Developed by Ibrahim Jamar using Fast.

:memo: Specifications


:package: Package: com.imgbbhost.jamar.imgbbhost
:floppy_disk: Size: 14.09 KB
:mobile_phone: Minimum API Level: 14
:date: Updated On: 2026-03-08T18:30:00Z
:laptop: Built & documented using: FAST v5.6.0

Events:

ImgBBHost has total 3 events.

1. ImagePrepared

Image prepared successfully. Returns the internal file path ready for upload.
ImagePrepared

Parameter Type
internalPath text

2. ImageUploaded

Image uploaded successfully. Returns the image URL.
ImageUploaded

Parameter Type
imageUrl text

3. ErrorOccurred

An error occurred during prepare or upload. Returns the error message.
ErrorOccurred

Parameter Type
errorMessage text

Methods:

ImgBBHost has total 2 methods.

1. PrepareImage

Copy an image from a URI or file path to app’s private storage. Fires ImagePrepared when done.
PrepareImage

Parameter Type
source text

2. UploadImage

Upload an image from a file path inside app’s private storage (obtained from ImagePrepared).
UploadImage

Parameter Type
imagePath text

Designer:

ImgBBHost has total 2 designer properties.

1. ApiKey

ApiKey

  • Input type: string

2. Expiration

Expiration

  • Input type: non_negative_integer
  • Default value: 600 (0 for unlimited time)

Setters:

ImgBBHost has total 2 setter properties.

1. ApiKey

The current ImgBB API key.
ApiKey

  • Input type: text

2. Expiration

The current expiration time in seconds.
Expiration

  • Input type: number

Getters:

ImgBBHost has total 4 getter properties.

1. ApiKey

Returns the current ImgBB API key.
ApiKey

  • Return type: text

2. Expiration

Returns the current expiration time in seconds.
Expiration

  • Return type: number

3. ImageUrl

Returns the URL of the last uploaded image (empty if none).
ImageUrl

  • Return type: text

4. PreparedImagePath

Returns the internal path of the last prepared image (empty if none).
PreparedImagePath

  • Return type: text
Get your API key here

Example usage

Downloads

com.imgbbhost.jamar.imgbbhost.aix (14.1 KB)

5 Likes

Since you’re using FAST-CLI, you can make blocks PNGs when compiling the project. Just use the -b flag with the build command.

Example:

fast build -b
2 Likes

Ooops :smiling_face_with_sunglasses: I just tested it right away, its even generate blocks for different platforms. Soon you’ll tell us, hey guys, use fast build -p it will generate a topic direct in communities, :laughing: just kidding, but your work is making things great.

2 Likes

Okay, I’ve downloaded it, written the API Key, and set the Expiration to 0.

What’s the next step? What should I do about the blocks?

Would you recommend a better tool? But it must be free, please.

Follow what I have shown here, and when ImageUploaded get the url and store it in your database

Going for cloudinary can be a better option, there this trick I used long time ago. Creating three or more account, creating a list of keys etc, and when needed to upload file, use pick random from list, remember this is abuse, but we’re trying to prevent bandwidth with 1 account.

Thank you so much! I tried it and it worked! :heart::heart:

1 Like