Attachments and File Fingerprinting?

Kevlar

Member
First ... I would imagine that attachments are stored in the file system, yes? Does xF have the ability to redirect attachment links to a different URL, i.e. attachments.myserver.com vs. forum.myservers.com?

Second ... maybe it would be a good idea to implement some sort of file fingerprinting in xF? I see many new file/archive solutions these days fingerprint a file and essentially only keeps on version of a file. For example, if Bobby uploads a image file it checks to see if the file is already on the server by analyzing a fingerprint of the file and matching it against files that are already in existance. If the file already exists, it just puts a link to the file that is already there. If the file doesn't exist, it uploads the file. This should help cut down on wasted stored space by users who insist on uploading the same file multiple times.
 
the kind of fingerprinting you are suggestion i believe would be pretty much impossible to manage!

i mean crc32 checksum is i believe one of the easy methods. but it still would require the two files to be identical in nature.

screenshots, images are hardly going to have similar fingerprint no matter how much they are alike!
 
The ability to prevent duplicate file attachments is one of the key features introduced in vb4.

To add it to xenForo will require an additional table and some code to check the hash of the attachment and create a pointer to the single resource. Also additional code will be required to only delete the resource only when there isn't anymore posts referencing the attachment.
 
Top Bottom