this question has been answered before, but I can't read the answers (I don't use EE that often, so I don't have "Premium services" access):
One of my PHP modules offers file upload but some of my client's employees are somehow stupid enough to not read the message "please upload files with a max. size of 5 MB" shown above the upload file field ... the larger uploads result in a PHP timeout error.
How could I present a custom error message instead (something like "the script didn't respond in time - please check the file size again (remember to stay below 5 MB)")?
Thank you for your help!
P.S. Am I right in saying that there is no reliable way to check a file size BEFORE the upload begins?