Django uploads: Discard uploaded duplicates, use existing file (md5 based check)
Thanks to alTus answer, I was able to figure out that writing a custom storage class is the key, and it was easier than expected. I just omit calling the superclasses _save method to write the file if it is already there and I just return the name. I overwrite get_available_name, to avoid getting numbers … Read more