1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Lack of Interest importPostAttachment addition

Discussion in 'Closed Suggestions' started by Paul M, Oct 22, 2010.

  1. Paul M

    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).
     
  2. Mike

    Mike XenForo Developer Staff Member

    As a point about the file size, it's calculated in the process of inserting the file. That was one of the fixes in the B2 importer (actually, not in the importer itself).
     
  3. Paul M

    Paul M Well-Known Member

    Ah, ok. That was the main reason for asking.

    Still, it might be handy if the facility was there anyway, it certainly wouldnt harm anything. :)
     

Share This Page