Welcome Guest, Not a member yet? Register   Sign In
Is File Upload class creates unique file name when encrypt_name set true?
#4

encrypt_name does not guarantee a unique file name. That said, the chance of a name collision is incredibly small. But a small chance is not the same as no chance.

You might be interested to know that do_upload() calls set_filename() and set_filename() will append a number to the end of the filename to avoid overwriting a pre-existing file. This happens for any file upload encrypted name or not.
Reply


Messages In This Thread
RE: Is File Upload class creates unique file name when encrypt_name set true? - by dave friend - 10-30-2018, 09:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB