http://golang.org/src/pkg/net/http/request.go
Why it returns to nil when ErrNotMultipart?
mr, err := r.multipartReader()
767 if err == ErrNotMultipart {
768 return nil
769 } else if err != nil {
770 return err
771 }
In my case, I had a typo from my header
multipart/form-data, boundary=xxxx
The above should have a semi-colon instead of a comma. Now, I was tracing this for hours, because I thought ParseMultipartForm processed the data successfully.
There could be a strong reason why it was forced to nil, judging from the code.
(I posted this same question at golang-nuts group, but when I posted a reply to the first collaborator, my reply was not posted successfully. So, I think stackoverflow is a better tool for posting this question)