diff --git a/cmd/frontend/images.go b/cmd/frontend/images.go index cec9984..921c768 100644 --- a/cmd/frontend/images.go +++ b/cmd/frontend/images.go @@ -17,12 +17,6 @@ func UploadImage(c *b.Config, s *b.CookieStore) http.HandlerFunc { return } - if err := r.ParseMultipartForm(10 << 20); err != nil { - log.Println(err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - file, _, err := r.FormFile("article-image") if err != nil { log.Println(err) diff --git a/cmd/frontend/pdf.go b/cmd/frontend/pdf.go index 5d25554..eda5820 100644 --- a/cmd/frontend/pdf.go +++ b/cmd/frontend/pdf.go @@ -18,12 +18,6 @@ func UploadPDF(c *b.Config, s *b.CookieStore) http.HandlerFunc { return } - if err := r.ParseMultipartForm(10 << 20); err != nil { - log.Println(err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - file, _, err := r.FormFile("pdf-upload") if err != nil { log.Println(err)