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:
parent
1c32c76f14
commit
f9ca51e268
@ -170,7 +170,7 @@ func uploaderPost(w http.ResponseWriter, r *http.Request) {
|
||||
r.ParseMultipartForm(32 << 20)
|
||||
|
||||
links := []string{}
|
||||
for _, h := range r.MultipartForm.File["uck"] {
|
||||
for _, h := range r.MultipartForm.File["file"] {
|
||||
if h.Size > conf.maxsize {
|
||||
http.Error(w, "File is too big", http.StatusRequestEntityTooLarge)
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user