In Laravel when using the storage Facade to save file uploads it uses Str::random(40) under the hood to auto generate unique filenames. Source https://github.com/laravel/ideas/issues/161
I have a requirement for a file upload site to ensue uploaded files have unique filenames.
So my question is Str::random(40) adequate in terms of collision proof or should I be using Str::uuid instead to generate unique filenames?
Aucun commentaire:
Enregistrer un commentaire