How It Works
When a user uploads an image, theonUpload callback is triggered. You need to:
- Handle file selection (file picker or camera)
- Process the files (validate, resize, etc.)
- Upload to your server
- Return the uploaded file URLs
Basic Example
Using the Event Data
TheonUpload callback receives information about the upload request:
Async Uploads
For uploads that take time, use suspend functions:onUpload callback only handles the Joyfill integration. You’re responsible for implementing file selection, processing, and server upload according to your app’s needs.