Reply to Overwrite error messages

Overwrite error messages new!
by Ben, 15 years, 5 months ago
Hi,

Is it possible to overwrite an error produced by the script? For example, If i wanted to limit the upload size using:
$handle->file_max_size = "2097152";

This would produce the error "File too big", or whatever was in the translation etc. If I wanted to catch this error, and overwrite it, perhaps with some more detail, e.g. file size, limit size and file name.

Is there an easy way to do this, or is it best to amend the main class script to return all of the required information?

Best regards, Ben.Reply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important