mirror of
https://github.com/discourse/discourse.git
synced 2024-12-13 11:03:43 +08: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. |
||
---|---|---|
.. | ||
components | ||
modals | ||
pages | ||
admin_backups.rb | ||
admin_badges_groupings.rb | ||
admin_badges.rb | ||
admin_user_badges.rb | ||
cdp.rb |