Skip to content
This repository was archived by the owner on Jun 17, 2025. It is now read-only.

Commit 3f089fe

Browse files
Docs
1 parent 0a92e31 commit 3f089fe

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,22 @@ final url = cloudinaryImage.transform()
9191
// generates
9292
// https://res.cloudinary.com/demo/image/upload/c_thumb,g_face,h_150,w_150/r_20/e_sepia/e_brightness:200,g_south_east,l_cloudinary_icon,o_60,w_50,x_5,y_5/a_10/front_face.png
9393
```
94+
95+
## Upload Progress
96+
```dart
97+
final res = await cloudinary.uploadFile(
98+
CloudinaryFile.fromFile(
99+
_pickedFile.path,
100+
folder: 'hello-folder',
101+
context: {
102+
'alt': 'Hello',
103+
'caption': 'An example image',
104+
},
105+
),
106+
onProgress: (count, total) {
107+
setState(() {
108+
_uploadingPercentage = (count / total) * 100;
109+
});
110+
},
111+
);
112+
```

0 commit comments

Comments
 (0)