Open emersion opened 8 years ago
But this produces an empty struct:
Why should this work?
Because it works with JSON:
type UploadForm struct {
Title string
TextUpload *multipart.FileHeader
}
// is exactly the same as:
type UploadForm struct {
Title string `json:"Title"`
TextUpload *multipart.FileHeader `json:"TextUpload"`
}
Please dump your code and POST data here.
This works:
But this produces an empty struct: