Closed kdambekalns closed 3 years ago
When uploading a file, uniqid() was used to generate a temporary filename. Uploading a lot of files at the same time could lead to collisions.
uniqid()
This change switches to Algorithms::generateRandomToken() instead.
Algorithms::generateRandomToken()
Fixes #31
We should also check if there's similar code in the flownative/google-cloudstorage code.
There more_entropy is used, but I cleaned it up a bit: https://github.com/flownative/flow-google-cloudstorage/pull/27
more_entropy
When uploading a file,
uniqid()
was used to generate a temporary filename. Uploading a lot of files at the same time could lead to collisions.This change switches to
Algorithms::generateRandomToken()
instead.Fixes #31