I found this to be the most helpful in overcoming this issue:
https://www.chrisabernethy.com/why-wordpress-asks-connection-info/
However, after doing the chown to the directory (changing owner to www) I still got the connection error page asking for connection info (host, user, pw and type)
I noticed that these fields were showing up auto filled because I had attempted to do this previously. I felt that this information in the database was causing my problem even though I had successfully changed the permissions of the wordpress directory.
I went into the WP database and under the wp_options table near the end I found an entry called “ftp_credentials”. I deleted that, but I also re-chowned the directory after doing that. But after both those things, I was able to do the upgrades without a problem.