XF 2.1 Problem with importing attachments

AbuGhaith

Well-known member
Hi,
I do many tests to import attachment from vb to Xf using the last version of the importer,
I put the full path for attachments but nothing imported from attachment (attachment 0)

tested by many paths :

public_html/vb/attachment

/home/user/vb/attachment

./vb/atachment

./vb/attachment/


2020-02-25_15-03-10.webp
 
Does the "attachment" directory only contain those files (10000.attach, 10001.attach and so on) or does it contain folders (1/10000.attach and so on)?

We'd usually expect a vBulletin attachment directory to contain multiple directories representing user IDs.

In vBulletin 3.x we'd expect attachments to be in attachment/1234/<attachmentid>.attach and so on if the user ID was 1234.

In vBulletin 4.x we'd expect attachments to be in attachment/1/2/3/4/<filedataid>.attach if the user ID was 1234.

You may want to investigate via the vBulletin settings what the correct path is, make sure the path is readable and so on. Also check whether the attachments are in the database rather than the file system.

We've not had any other reports of attachments not working so strongly suspect you're facing some localised issue or using the wrong path or similar.
 
Just to clarify, the attachment files are no longer in the directories that vBulletin put them in?

Well, there's your problem. The files need to be in the same directory structure as vBulletin intended them to be in otherwise we won't know how to find them.
 
@Chris D
I noticed that vB's old "anhaenge" directory hasn't been used since the Xenforo installation (Oct 11, 2019). Did the importer then automatically copy this content into the data/attachments directory? Do I no longer need the old directory?
I found a few files that exist in both directories.
 
Last edited:
Back
Top Bottom