Randomised Filenames
The filename (split in #2 (closed)) should be randomised.
perhaps use https://github.com/nikolay-govorov/nanoid
Planning for the future:
10% chance of file conflict when 1 million files uploaded.
If my primaryschool-level math is right, 6 characters long, 21 possible combinations, 39million permutations, which is good enough.
Files will look like http://cz0.au/Yo1Tr9.png
, which compared to quadfile: https://cz0.au/zkMo.png
.
-
Rename files -
Save correct name to disk (I have definitely NOT made that mistake before with quadfile)