ImgToBBHost extension is an alternative to Cloudnary.
ImgBB is one of the most simple free image hosting sites on the web.
For freelance photographers, it takes the headache out of two seemingly inescapable industry struggles: insufficient storage space and a lack of organization.
Here’s how easy it is to use this image hosting service:
Head over to imgbb.com or ibb.co (which doubles as its upload portal.)
Create an account if you’d like to delete or edit your uploads later (optional) .
ImgBB accepts the following formats:
BMP
GIF
HEIC
JPG
PDF
PNG
TIF
WEBP
File Max size 32 mb.
Space for key unlimited.
:
Extension overview:
Simple to use add.
Add your apiKey
Add your Image
Add time expiration in seconds(0 unlimited) range: 60-15552000
Return in the block "When ImgBBHosted"
url:address of the uploaded image
expiration:seconds to expire
deleteUrl:address to destroy image
success:true if upload is ok
status: 200 if upload is ok .
Yes it works like that, but I mean being able to do it with the api, using just the web component, inside the app, without needing a webviewer or additional button press.
I was able to use the imgbb extension for app inventor and modified it to work with camera component. Works as advertised. One problem, I can only set the expiration to the maximum of 180 days. I want to have control over that. My question is, can I use the webviewer to do a post that uploads the image. If so can I get some assistance with formating syntax(i.e., block configuration)
Set expiration to 0, which then means the file has no expiration date.
Note, you do not have to use the imgbb extension, you can use a web component and a base64 extension to upload images to imgbb, and handle the data returns accordingly
Can you give me an example of using the web component with imgbb api? I have used the google sheets example, but not sure on how to structure the PostText text. I assume the web url is as follows "https://api.imgbb.com/1/upload"
Tried setting expiration to zero using the extension, but I get nothing in return and image does not upload. I agree with you in regards to using Web viewer and posting text block.