Skip to content
Snippets Groups Projects
Commit 748cd707 authored by Danis Kirasirov's avatar Danis Kirasirov
Browse files

Merge branch 'master' into feature/PRXS-1667-UpdateExprPackage

parents d0f74a1a 143766b5
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ func NewActionsCollection(spaceID, envID string) *collections.Collection { ...@@ -25,7 +25,7 @@ func NewActionsCollection(spaceID, envID string) *collections.Collection {
"extension", field.String().SetTitle("Расширение (Deprecated)"), "extension", field.String().SetTitle("Расширение (Deprecated)"),
"name", field.String().SetTitle("Название").SetTextSearch(true), "name", field.String().SetTitle("Название").SetTextSearch(true),
"description", field.String().SetTitle("Описание"), "description", field.String().SetTitle("Описание"),
"icon", field.String().SetTitle("Название иконки"), "icon", field.String().SetTitle("Название иконки").WithUI(&field.UI{Widget: "Icon"}),
"image", references.Field([]string{"media"}).SetTitle("Изображение").WithUI(&field.UI{Widget: "Media"}), "image", references.Field([]string{"media"}).SetTitle("Изображение").WithUI(&field.UI{Widget: "Media"}),
"kind", field.Number( "kind", field.Number(
field.NumberFormatInt, field.NumberFormatInt,
......
...@@ -33,6 +33,7 @@ func (u *uploader) Upload(src io.Reader, upload *Upload) error { ...@@ -33,6 +33,7 @@ func (u *uploader) Upload(src io.Reader, upload *Upload) error {
if err != nil { if err != nil {
return err return err
} }
resp.Body.Close()
if resp.StatusCode != http.StatusOK { if resp.StatusCode != http.StatusOK {
return errors.New("upload request failed: " + resp.Status) return errors.New("upload request failed: " + resp.Status)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment