So I basically went through almost all the workarounds available on google and getting this to work and still I was finding an issue uploading files…… It was really annoying as I was editing all the required values in the php.ini file and couldnt understand why this change wasnt working. But then I found the following, seems I didnt edit the “max_execution_time”:
define('WP_MEMORY_LIMIT', '64M'); just after
<?php on wp-config.php always worked for me. For the latest wordpress version it isn’t working. I don’t know the actual reason behind it but it still works for my older wordpress sites which I never updated from last year.
Follow these steps for latest WordPress:
1) Put this at the end of your php.ini
upload_max_filesize = 512M post_max_size = 512M max_execution_time = 300
2) Restart apache(Setting won’t take effect until apache is restarted)
No token or token has expired.