mirror of
https://github.com/e107inc/e107.git
synced 2025-07-29 10:50:25 +02:00
Forum plugin - attachment upload error message now shows properly
This commit is contained in:
@@ -576,6 +576,7 @@ function process_upload()
|
||||
{
|
||||
foreach($uploaded as $upload)
|
||||
{
|
||||
//print_a($upload); exit;
|
||||
if ($upload['error'] == 0)
|
||||
{
|
||||
$_txt = '';
|
||||
@@ -650,7 +651,8 @@ function process_upload()
|
||||
}
|
||||
else
|
||||
{ // Error in uploaded file
|
||||
echo 'Error in uploaded file: '.(isset($upload['rawname']) ? $upload['rawname'] : $upload['name']).'<br />';
|
||||
//echo 'Error in uploaded file: '.(isset($upload['rawname']) ? $upload['rawname'] : $upload['name']).'<br />';
|
||||
e107::getMessage()->addError('Error in uploading attachment: '.vartrue($upload['message']));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user