mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Save attachment fix with forum-post - db encoding issue remains.
This commit is contained in:
@@ -254,13 +254,14 @@ if (isset($_POST['newthread']) || isset($_POST['reply']))
|
|||||||
// $_tmp = $ur['type'].'*'.$ur['file'];
|
// $_tmp = $ur['type'].'*'.$ur['file'];
|
||||||
// if($ur['thumb']) { $_tmp .= '*'.$ur['thumb']; }
|
// if($ur['thumb']) { $_tmp .= '*'.$ur['thumb']; }
|
||||||
// if($ur['fname']) { $_tmp .= '*'.$ur['fname']; }
|
// if($ur['fname']) { $_tmp .= '*'.$ur['fname']; }
|
||||||
|
|
||||||
$type = $ur['type'];
|
$type = $ur['type'];
|
||||||
$newValues[$type][] = $ur['fname'];
|
$newValues[$type][] = $ur['file'];
|
||||||
// $attachments[] = $_tmp;
|
// $attachments[] = $_tmp;
|
||||||
}
|
}
|
||||||
// $postInfo['_FIELD_TYPES']['post_attachments'] = 'array'; //XXX Horrible "FIELD_TYPES" idea.
|
|
||||||
$postInfo['post_attachments'] = e107::serialize($newValues); //FIXME
|
// $postInfo['_FIELD_TYPES']['post_attachments'] = 'array';
|
||||||
|
$postInfo['post_attachments'] = e107::serialize($newValues); //FIXME XXX - broken encoding when saved to DB.
|
||||||
}
|
}
|
||||||
// var_dump($uploadResult);
|
// var_dump($uploadResult);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user