Archived from the Transloadit support forum. Originally posted on March 17, 2012; details may be outdated, see our docs for current behavior. Original thread
Is there a way I can detect if a duplicate file is being uploaded? Perhaps a crc32 check robot that can calculate the cry values, which I can then use check if it is unique?
Not yet, but it’s something we’d like to add. Maybe in form of a ‘/hash’ robot that offers crc32, md5, sha1, etc.
But first I’d love to hear more about your use case, are you trying to de-duplicate files when it comes to storage, or what are you planning to use the hash for?
Thanks for your response. We just launched a photo meme sharing iPhone app and website http://www.pictorious.com, and we are using transloadit for all our photo processing. The issue we are running into is the de-duplication issue. Since our app is a crowd-sourced game, we don’t want duplicate pictures to be uploaded. Often times the same user will upload the same picture twice by accident, or into multiple categories which would be against the rules. Currently we have a laborious manual moderation process so we’d like to use something automated. Calculating a unique thumbprint for each photo so that we can create a unique index on it in our db would solve the problem.
The hash robot would be awesome, is there anything we can do to help push the hash robot feature up? Perhaps we can be in your beta? We’d love to start using it right away and could help test it for you. I know it would help save a lot of time for our moderation staff.
well we have some parts of our stack opensourced, but since robots are mostly the bulk of what we do, we can hardly outsource them. We also have no easy way yet to allow customers to build their own robots. Honestly, I am not sure how this would work, but it’s certainly worth thinking about.
Regarding the costs for the hash robot … it would be around $500.