]> git.mxchange.org Git - quix0rs-gnu-social.git/commit
Don't store duplicates of files.
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 24 Feb 2015 20:11:25 +0000 (21:11 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 24 Feb 2015 20:11:25 +0000 (21:11 +0100)
commit325e784ccd555e03b84dbc62abaca3ab405c3a13
treeefde5b58cea61c4011419acf01360cc8b80fd7ce
parent0d577584c357c5075d34fb00833ef44f2ce03649
Don't store duplicates of files.

If a new file is uploaded, it will be matched with a previously uploaded
file so we don't have to store duplicates. SHA256 is random enough and
also unlikely enough to cause collisions.
classes/File.php
classes/File_thumbnail.php
lib/default.php
lib/mediafile.php
scripts/upgrade.php