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:
dev 2021-10-20 08:33:06 +00:00
parent 1c32c76f14
commit f9ca51e268

View File

@ -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