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 URL
  • photo_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

PropTypeDescription
related_idstringID of the parent record
related_tablestringDatabase table name
related_columnstringColumn prefix for URL fields
urlstringExisting image URL
url_parametersstringExisting parameters
upload_pathstringStorage path prefix
file_limit_sizenumberMax file size in MB
file_formatsstringAllowed MIME types
dz_iconstringDropzone icon class

See Also