Hi, is there another possibility how to show the error message after uploading file (e.g. file is to small). After this message I get blank page (caused by the exit in the code)...
Thank you, Jan
Thank you, Jan
$mainframe->enqueueMessage( $message, 'error' );
showForm($_POST);
The showform() function is used for the Validation error return but not the Form uploads.
$errorMsg = 'some error ...';
$mainframe->redirect($form_uri, $errorMsg);
into your form you must add the info about the form site:if (!isset($_POST['form_uri'])) {
$form_uri = 'index.php';
} else {
$form_uri = $_POST['form_uri'];
}
The code is not copied from the site (I have no access for it now), so it can contain errors (;, (, ), ... )