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:
@@ -256,11 +256,12 @@ if (isset($_POST['newthread']) || isset($_POST['reply']))
|
||||
// if($ur['fname']) { $_tmp .= '*'.$ur['fname']; }
|
||||
|
||||
$type = $ur['type'];
|
||||
$newValues[$type][] = $ur['fname'];
|
||||
$newValues[$type][] = $ur['file'];
|
||||
// $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);
|
||||
|
||||
|
Reference in New Issue
Block a user