Thanks for responding. I was able to make it work. the phpinfo.php file was displaying all the correct values, but wordpress kept saying a different max upload value. I had to create a .user.ini file in the directory where my wordpress was installed, and i added 2 lines:
upload_max_filesize = 128M
post_max_size = 128M
For anyone facing a similar issue, you can change the 128M to whatever you need.