Admin: Guest Uploads - Check for Duplicate files
This will save a lot of disk space.
2nd Mar 2015 UPDATE:
This has been completed, but not just for guest uploads… for member uploads to. We are checking the file name, file size and the file md5 sum which should be enough to determine unique files as the md5 sum changes even with the slightest change.
ORIGINAL UPDATE: Needs to be done correctly as to make sure they are actually duplicate files and when a match is found we’re updating the correct db records.
Due to the new Mark Beat As Checked feature being worked on for artists we can't simply just not record anything about the duplicate file because artists need to mark beats as checked for each beat in each request as one beat can be sent to many requests. If only the original record was kept then this wouldn't be possible.
We still need to insert the details into the db.
We can disregard the uploaded file which is duplicate and when we insert the details into the db we use the newfilename from the existing file so there'll be duplicate rows but not duplicate files.
Duplicate rows we can deal with as they're not as big :)