Эх сурвалжийг харах

had the struct tags wrong on the image uploader

aeth 3 сар өмнө
parent
commit
34e2f673c4

+ 4 - 4
pkg/storage/storage.go

@@ -97,11 +97,11 @@ func (d *Document) MakeSample() string {
 }
 
 type Image struct {
-	Ident    Identifier            `json:"identifier"`
-	Location string                `json:"title" form:"title"`
-	Title    string                `json:"description" form:"description"`
+	Ident    Identifier `json:"identifier"`
+	Location string
+	Title    string                `json:"title" form:"title"`
 	File     *multipart.FileHeader `form:"file"`
-	Desc     string
+	Desc     string                `json:"description" form:"description"`
 	Created  string
 	Category string
 	Data     []byte