mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Add support for uploads to form templates (#22232)
This commit is contained in:
@@ -32,11 +32,10 @@ export default class FormTemplateForm extends Component {
|
||||
type: "dropdown",
|
||||
icon: "chevron-circle-down",
|
||||
},
|
||||
// TODO(@keegan): add support for uploads
|
||||
// {
|
||||
// type: "upload",
|
||||
// icon: "cloud-upload-alt",
|
||||
// },
|
||||
{
|
||||
type: "upload",
|
||||
icon: "cloud-upload-alt",
|
||||
},
|
||||
{
|
||||
type: "multiselect",
|
||||
icon: "bullseye",
|
||||
|
||||
@@ -51,7 +51,7 @@ export const templateFormFields = [
|
||||
type: "upload",
|
||||
structure: `- type: upload
|
||||
attributes:
|
||||
file_types: "jpg, png, gif"
|
||||
file_types: ".jpg, .png, .gif"
|
||||
allow_multiple: false
|
||||
label: "${I18n.t("admin.form_templates.field_placeholders.label")}"
|
||||
validations:
|
||||
|
||||
Reference in New Issue
Block a user