partage

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.z3bra.org/partage.git
Log | Files | Refs | README | LICENSE

commit 5ed4fb1dbaec34335e0521088e4e62dfea0bcb63
parent 676d51641bad5bcc2f58dce85ddd563ac86741a3
Author: Willy Goiffon <dev@z3bra.org>
Date:   Wed, 20 Oct 2021 10:33:06 +0200

Change form file attribute to "file"

Diffstat:
Mpartage.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/partage.go b/partage.go @@ -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