mirror of
https://github.com/discourse/discourse.git
synced 2025-02-05 19:11:13 +00:00
c3bc7a6a05
This commit adds an API `upload_image` to `FormKitField` page object for setting an image file on an `Image` field in FormKit. Usage is like this: ```ruby form.field("image_field").upload_image(image_path) ``` The `value` API also now supports `Image` fields; it returns an `Upload` record if the field has an uploaded image.