Fixed Importing attachments from XF 2.1 to XF 2.1

Chris D

XenForo developer
Staff member
Affected version
XFI 1.1.0
When importing an XF 2.1 forum into XF 2.1, the attachments step may omit setting the data file_path field which is used specifically for video attachments (which use a custom attachment path in XF 2.1).

This should be fairly rare as XF 2.1 hasn't been out for long yet, but if you are importing the recommended change is to open src/addons/XFI/Import/Importer/XenForo2.php and find:
PHP:
$import->setDataExtra('upload_date', $attachment['upload_date']);
And below add:
PHP:
$import->setDataExtra('file_path', $attachment['file_path']);
 
Top Bottom