Paul M
Well-known member
Please add an extra array to this function ;
importPostAttachment($oldAttachmentId, $fileName, $tempFile, $userId, $postId, $date, array $attach = array(), array $extra = array())
and modify $dataextra to include it
try
{
$dataExtra = array_merge(array('upload_date' => $date, 'attach_count' => 1), $extra);
This is so extra information can be passed direct to the attachment data by importers (such as file_size).
importPostAttachment($oldAttachmentId, $fileName, $tempFile, $userId, $postId, $date, array $attach = array(), array $extra = array())
and modify $dataextra to include it
try
{
$dataExtra = array_merge(array('upload_date' => $date, 'attach_count' => 1), $extra);
This is so extra information can be passed direct to the attachment data by importers (such as file_size).
Upvote
0