Change form file attribute to "file"
git-svn-id: file:///srv/svn/repo/marisa/trunk@44 d6811dac-2434-b64a-9ddc-f563ab233461
This commit is contained in:
@@ -170,7 +170,7 @@ func uploaderPost(w http.ResponseWriter, r *http.Request) {
|
|||||||
r.ParseMultipartForm(32 << 20)
|
r.ParseMultipartForm(32 << 20)
|
||||||
|
|
||||||
links := []string{}
|
links := []string{}
|
||||||
for _, h := range r.MultipartForm.File["uck"] {
|
for _, h := range r.MultipartForm.File["file"] {
|
||||||
if h.Size > conf.maxsize {
|
if h.Size > conf.maxsize {
|
||||||
http.Error(w, "File is too big", http.StatusRequestEntityTooLarge)
|
http.Error(w, "File is too big", http.StatusRequestEntityTooLarge)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user