If I try to upload a very large file in WordPress which is ~ 100 mb in file size, the max_execution_time
in PHP is reached and I get a browser-styled error page which reads:
This webpage is not available
The connection to example.com was interrupted
Error code: ERR_CONNECTION_RESET
Is there a way I can detect when the execution time has been reached and display my own custom error message in place of the default error message I am getting?