This guide shows you how to handle image uploads in Joyfill forms.Documentation Index
Fetch the complete documentation index at: https://docs.joyfill.io/llms.txt
Use this file to discover all available pages before exploring further.
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.