To increase the import file size limit for applications written in PHP, you can do the following:
Locate and open php.ini file (use [How To] find php.ini file article for more details).
Look for the following lines:
upload_max_filesize = 2M
post_max_size = 8M
Change the values to the desired file size limit, for example:
upload_max_filesize = 50M
post_max_size = 50M
Save the changes to the file and restart your web server for the changes to take effect.
Test your application’s file upload feature to ensure the file size limit has been increased.
Alternatively, it is possible to set these values in .htaccess file in the root of the application:
php_value upload_max_filesize 50M
php_value post_max_size 50M
This will set these values for your application specifically and won’t affect other applications on the server.
[How To] find php.ini file