BUG 4314 Adjustment to uploading photos and Resumes.

This commit is contained in:
Hector Cortez
2011-12-07 09:50:42 -04:00
committed by Erik Amaru Ortiz
parent 11a2f1f6fc
commit 0f2cb538b2
7 changed files with 55 additions and 9 deletions

View File

@@ -40,7 +40,10 @@ try {
break;
}
if ( empty($_POST) || !isset($_POST['form'])) {
throw ( new Exception ('Posted data is empty!') );
if( empty($_FILES) )
throw ( new Exception (G::loadTranslation('ID_ERROR_UPLOADING_FILENAME') ) );
else
throw ( new Exception (G::loadTranslation('ID_POSTED_DATA_EMPTY') ) );
}
$form = $_POST['form'];
@@ -290,5 +293,5 @@ catch (Exception $e) {
$aMessage['MESSAGE'] = $e->getMessage();
$G_PUBLISH = new Publisher;
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
G::RenderPage( 'publish');
G::RenderPage( 'publish', 'blank');
}