Photo Uploader
Photo uploads made easy. Works with cloud image providers (Cloudflare R2, Bunny.net) or local storage.
Database Fields
Add these fields to your table for photo uploads:
photo_url- Image URLphoto_url_parameters- Processing parameters
Single Photo Upload
<PhotoUploadSingle related_id={item?.uuid} related_table="items" related_column="photo_url" url={item?.photo_url} url_parameters={item?.photo_url_parameters} upload_path="/items" file_limit_size={1} file_formats="image/jpeg"/>Props
| Prop | Type | Description |
|---|---|---|
related_id | string | ID of the parent record |
related_table | string | Database table name |
related_column | string | Column prefix for URL fields |
url | string | Existing image URL |
url_parameters | string | Existing parameters |
upload_path | string | Storage path prefix |
file_limit_size | number | Max file size in MB |
file_formats | string | Allowed MIME types |
dz_icon | string | Dropzone icon class |
See Also
- PhotoUploadSingle - Single image component
- PhotoUploadGallery - Multiple images component