Save the PHP.ini file and upload it to your website.<\/li>\n<\/ol>\nThe above code increases the file upload limit to 64 MB, and increases the post size to match it meaning that users can upload much more oversized files than 2 MB. Additionally max_execution_time<\/em> is included so that the upload process does not time out. You can also increase the file upload limit in WordPress by modifying the .htaccess file which entails the following steps:<\/p>\n\n- Access your website\u2019s files using an FTP client or through your web hosting\u2019s control panel.<\/li>\n
- Search for the .htaccess file. If it\u2019s not there, create a new one.<\/li>\n
- Add the following line of code to the file: php_value upload_max_filesize 64M<\/mark>.<\/li>\n
- Save the .htaccess file and upload it to your website.<\/li>\n<\/ol>\n
This code also increases the file upload limit to 64 MB. But it’s important to note that not all web hosts allow you to amend the .htaccess file hence it’s critical to check with your host first. <\/p>\n
<\/span>Option 2: Use a Third-Party File Upload Plugin<\/span><\/h2>\nThe second option for uploading sizeable files to WordPress is to use a third-party file upload plugin. Several plugins are available that can help you manage file types, increase the file upload limit, and more. Such plugins include but aren’t limited to:<\/p>\n