diff --git a/tools.go b/tools.go index f6ec75e..89d60c6 100644 --- a/tools.go +++ b/tools.go @@ -259,7 +259,7 @@ func (t *Tools) UploadFiles(r *http.Request, uploadDir string, rename ...bool) ( // Parse the form, so we have access to the file. err = r.ParseMultipartForm(int64(t.MaxFileSize)) if err != nil { - return nil, fmt.Errorf("error parsing form data") + return nil, fmt.Errorf("error parsing form data: %v", err) } for _, fHeaders := range r.MultipartForm.File {