diff --git a/pkg/form.go b/pkg/form.go index 0f7883d..44eb801 100644 --- a/pkg/form.go +++ b/pkg/form.go @@ -8,7 +8,7 @@ import ( "fmt" "github.com/jackc/pgtype" "html/template" - "io/ioutil" + "io" "net/http" "net/mail" "net/url" @@ -337,7 +337,7 @@ func (field *FileField) FillValue(r *http.Request) error { return err } defer file.Close() - field.Content, err = ioutil.ReadAll(file) + field.Content, err = io.ReadAll(file) if err != nil { return err }