We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6185887 commit 9321577Copy full SHA for 9321577
controller/upload_file.rst
@@ -163,10 +163,8 @@ Finally, you need to update the code of the controller that handles the form::
163
*/
164
private function generateUniqueFileName()
165
{
166
- // uniqid() is based on timestamp,
167
- // so it creates similar and predictible file names as a result.
168
- // md5() is used to guarantee equal distribuition
169
- // and smaller predictibility of the file names.
+ // md5() reduces the similarity of the file names generated by
+ // uniqid(), which is based on timestamps
170
return md5(uniqid());
171
}
172
0 commit comments