Skip to content

working with multipart form data #4

Description

@bosky101

In case the request content type is multipart/form-data i'd like to know the best to read the file/post parameters

    if isMultipart(contentType, r) == true {
        r.ParseMultipartForm(0)      // works
        param.Parse(r.MultipartForm, body) // ideally something like this
    } else {
        r.ParseForm()      // works
        param.Parse(r.PostForm, body) //works
    }

i'm dealing with large POST content, unlike form url encoded - am having trouble reading the data.

Thanks
~B

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions