A Dart package for uploading images to ImgBB. This package supports uploading images via URL, file, and base64 data with proper error handling.
var res = await uploader.uploadImageUrl(
imageUrl: 'https://example.com/example.jpg',
name: 'example',
expiration: 600
);imageUrl: Direct public urlname: Name of fileexpiration: Image expiry time in seconds
var res = await uploader.uploadImageFile(
imageFile: File('test/imgbb.png'),
name: 'example',
expiration: 600
);imageFile: Local file pathname: Name of fileexpiration: Image expiry time in seconds
var res = await uploader.uploadImageBase64(
base64Image: '64XF//5600XRI==',
name: 'example',
expiration: 600
);base64Image: Base64 encoded image stringname: Name of fileexpiration: Image expiry time in seconds
Please find out all get method in Example
You are welcome to open a ticket on github if any problems arise. New ideas are always welcome.
Copyright © 2024 Rohit Chouhan. Licensed under the MIT LICENSE.
All copyright reserved to imgbb.com