FAQ
Currently I am using this way to parse multipart forms when user upload a
file to servers.
However, I can not read additional form values which are parsed into
private part.dispositionParams.

func parse_it (r *http.Request) {
form, fe := r.MultipartReader()
part, fe := form.NextPart()
fname = part.FileName()
data, _ := ioutil.ReadAll(part)
}


For example, I can not read the value "newname"
curl -v -F 'newname=alternative_name&password=@/etc/passwd'
http://localhost:8080/
curl -v -F 'newname=alternative_name' -F 'password=@/etc/passwd'
http://localhost:8080/


Chris
http://weed-fs.googlecode.com

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedFeb 23, '13 at 8:56p
activeFeb 23, '13 at 8:56p
posts1
users1
websitegolang.org

1 user in discussion

ChrisLu: 1 post

People

Translate

site design / logo © 2021 Grokbase