Skip to content

Form type for image uploads #8053

@ruibaby

Description

@ruibaby

Prerequisites

  • I have searched for related issues in the Issues list.
  • This is a feature related to Halo. If it is not an issue with the project itself, it is recommended to submit it in the Discussions.
  • If it is a feature suggestion for plugins and themes, please submit it in the respective plugin and theme repositories.

Your current Halo version

2.22.0-alpha.2

Describe this feature

We need a FormKit form type for image uploads. Currently, there's an attachment form type, but it only provides a button to open the attachment library - it's essentially just a regular input field that can't preview images. So we're hoping for a form type that can both display image previews and support direct image uploads, while still keeping the attachment library selection as an optional feature.

ui exmaple:

Image

schema example:

- $formkit: image
label: Logo
multiple: false
- $formkit: image
label: Slide images
multiple: true

/area ui
/kind feature

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/uiIssues or PRs related to the Halo UIkind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions