Skip to content

Cannot parse multipart form without form: attributes #10

@emersion

Description

@emersion

This works:

type UploadForm struct {
    Title      string                `form:"Title"`
    TextUpload *multipart.FileHeader `form:"TextUpload"`
}

But this produces an empty struct:

type UploadForm struct {
    Title      string
    TextUpload *multipart.FileHeader
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions