Skip to main content
The Joyfill SDK provides comprehensive image upload functionality through image fields, supporting both single and multiple image uploads with flexible handling options. Architecture Overview When users interact with image fields, the SDK triggers onUpload events that your application must handle by implementing the FormChangeEvent protocol. Parameters Detailed Example For a complete working example with image picker implementation, see: ImageReplacementTest.swift - Demonstrates image upload with URL replacement Common Usage Patterns Pattern 1: Immediate Server
Pattern 2: Programmatic Image Replacement You can replace images after upload using the replaceImageURL method:
Flow:
  1. User taps image field → SDK creates UploadEvent
  2. Your onUpload handler receives the event
  3. You present image picker/camera
  4. Process selected images (resize, upload to server, etc.)
  5. Call event.uploadHandler([urls]) with final URLs
  6. SDK updates the form with the provided URLs