It’s not max_file_uploads. It is upload_max_filesize. But even this won’t solve the problem
My php.ini is set to 32M and this is what I see when I try to upload to media library but it’s still 2M on CV upload form.
I’m running 6 wordpress sites each with it’s own VPS or Dedicated server and I was able to increase file upload size but not WPERP
Check your code because it has nothing to do with wordpress or php.ini