mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 08:19:40 +02:00
fix(customtemplate): create from file (#4769)
* fix(customtemplate): receive File from api * fix(customtemplate): return custom template fix #4384
This commit is contained in:
parent
739dda1318
commit
45afe76bc7
3 changed files with 5 additions and 4 deletions
|
@ -251,7 +251,7 @@ func (payload *customTemplateFromFileUploadPayload) Validate(r *http.Request) er
|
|||
}
|
||||
payload.Type = templateType
|
||||
|
||||
composeFileContent, _, err := request.RetrieveMultiPartFormFile(r, "file")
|
||||
composeFileContent, _, err := request.RetrieveMultiPartFormFile(r, "File")
|
||||
if err != nil {
|
||||
return errors.New("Invalid Compose file. Ensure that the Compose file is uploaded correctly")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue