-
1 Attachment(s)
Image files in the Wiki
I am trying to understand how the image files are structured in the file system or database for the wiki. I thought that they were similar to the vBulletin attachments, but looking at the directory implies something very different. In particular, none of the images are in the files where I can find them.
Here is a screen shot of what I found on my XenForo site. I think that we may have moved the controlling folder to the wrong location during our upgrade of XenForo to include out old vBulletin attachments.
Attachment 1612
-
On XenForo, the VaultWiki image files are in the directory /internal_data/vw_attachments
However, if your quoted directory is actually a copy of the source attachment directory for an import, then the filenames in that directory do not correspond to your current database, so simply copying the folder to the correct location will not work.
Additionally, if your /internal_data/vw_attachments directory already contains images, the images in the correct directory may not actually correspond to anything in your database if there were multiple import attempts made, especially if an import was made while your "controlling folder [was moved] to the wrong location".
For this reason, it is important that any imports are made against real directories that actually contain the correct files.
-
The attachment files in the regular XenForo system have the same file names and paths they had in vBulletin. The actual image files exist in that structure. I mistakenly thought that VaultWiki would work the same way.
There are no image files in the structure built by VaultWiki that I can find. It appears that the structure is similar to the vb/xf one for the directory tree inside the vw_attachments folder but terminates in a file that has encoded information that I presume locates the images somewhere. What are the files full.vw and 360.vw that appear as the name of the final leaf in each tree?
When we have finished our configuring and testing, we will be doing a fresh import of everything. It sounds like we will not have any reasonable way to get the images back before then. Is that correct?
-
The file full.vw contains the binary data for the original image; in most cases, this has not been altered from the original file that was uploaded. The file 360.vw contains the binary data for that image resized to 360 pixels wide. Similar to the id.attach and id.thumb files in vBulletin.
The problem is that the path (the preceding subdirectories) is probably not relevant to the current import, because the correct path for the data is dependent upon the positions of certain entries in the database. So there is no way to know which image is which by looking at the folder alone. The only way to "fix" this would be a fresh import of the wiki.