Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

working with multipart form data #4

Open
bosky101 opened this issue Aug 24, 2016 · 0 comments
Open

working with multipart form data #4

bosky101 opened this issue Aug 24, 2016 · 0 comments

Comments

@bosky101
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant