how work Anti-dupes system ?
this features on v1.5
I have a member uploading same file several times during the night
XFileSharing Pro - Anti-dupes system
Re: Anti-dupes system
You can see several similar files in file list, but physically its 1 file on HDD.
This "anti dupe system" calculating file hash for each file and if system already have such file, then it's just placing "link" to existing file. So, no duplicate files will be physically stored.
This "anti dupe system" calculating file hash for each file and if system already have such file, then it's just placing "link" to existing file. So, no duplicate files will be physically stored.
I have same MD5 files on 3-4 times on differnet FileServers Disks.
So, this feature working only one FileServer?
Ankrus told me a fix about it:
And its looks only for new Uploaded files, whats about already uploaded same size and same MD5 files?
So, this feature working only one FileServer?
Ankrus told me a fix about it:
This changes can be fix rely?its not a bug, anti-dupe system is server specific only
you can remove the server specific condition by editing fs.cgi
Code: Select all
my $ex = $db->SelectRow("SELECT * FROM Files WHERE file_size=? AND srv_id=? AND file_md5=? AND file_real_id=0 LIMIT 1",$size,$server->{srv_id},$md5)
to
Code: Select all
my $ex = $db->SelectRow("SELECT * FROM Files WHERE file_size=? AND file_md5=? AND file_real_id=0 LIMIT 1",$size,$md5)
And its looks only for new Uploaded files, whats about already uploaded same size and same MD5 files?
I tested Ankrus Fix but doesn't work 
This code give same Real ID for all new same files (size + md5) but still looks files go to servers and when you try to download same file from different server give this error:
I need urgently a Fix for this issue:
Need 1* Checking new uploads for size + MD5, if same file is already here, dont create new one, use oldones Real id with new name etc.
Need 2* Checking All files for same size and same MD5. If a file different copies, let alone one orijinal and remove other copies from other servers and use only orijinals Real ID for others download link.

This code give same Real ID for all new same files (size + md5) but still looks files go to servers and when you try to download same file from different server give this error:
Code: Select all
Error happened when generating Download Link.
Please try again or Contact administrator.
(ERROR:no_file)
I need urgently a Fix for this issue:
Need 1* Checking new uploads for size + MD5, if same file is already here, dont create new one, use oldones Real id with new name etc.
Need 2* Checking All files for same size and same MD5. If a file different copies, let alone one orijinal and remove other copies from other servers and use only orijinals Real ID for others download link.
YES!ankurs wrote:remove comment "#" from the below lineufkabakan wrote:I tested Ankrus Fix but doesn't work
#$server->{srv_id} = $ex->{srv_id} if $ex;

However we need still 2nd problem. How check old files for same size and same MD5

Example of 1 file have 4 copys on 4 another FileServers and 1 Cloned on same server:
http://www.ufkabakan.com/img/clonedfiles.png
No easy fix for this, contact support for customization; they should be able to write a small script to do this.ufkabakan wrote: However we need still 2nd problem. How check old files for same size and same MD5Because i thing i have TB size of same files...
Example of 1 file have 4 copys on 4 another FileServers and 1 Cloned on same server:
http://www.ufkabakan.com/img/clonedfiles.png