diff --git a/api/http/handler/customtemplates/customtemplate_create.go b/api/http/handler/customtemplates/customtemplate_create.go index f2bacb6f9..60727396b 100644 --- a/api/http/handler/customtemplates/customtemplate_create.go +++ b/api/http/handler/customtemplates/customtemplate_create.go @@ -279,9 +279,11 @@ func (payload *customTemplateFromFileUploadPayload) Validate(r *http.Request) er if err != nil { return errors.New("Invalid custom template description") } - payload.Description = description + logo, _ := request.RetrieveMultiPartFormValue(r, "Logo", true) + payload.Logo = logo + note, _ := request.RetrieveMultiPartFormValue(r, "Note", true) payload.Note = note diff --git a/app/portainer/views/custom-templates/create-custom-template-view/createCustomTemplateViewController.js b/app/portainer/views/custom-templates/create-custom-template-view/createCustomTemplateViewController.js index b63dd8037..1a0857e1b 100644 --- a/app/portainer/views/custom-templates/create-custom-template-view/createCustomTemplateViewController.js +++ b/app/portainer/views/custom-templates/create-custom-template-view/createCustomTemplateViewController.js @@ -30,6 +30,7 @@ class CreateCustomTemplateViewController { ComposeFilePathInRepository: 'docker-compose.yml', Description: '', Note: '', + Logo:'', Platform: 1, Type: 1, AccessControlData: new AccessControlFormData(),