Welcome Guest, Not a member yet? Register   Sign In
Upload library question
#3

[eluser]i_am_using_ci[/eluser]
[quote author="Phused" date="1241732057"]Where does it say that if you set overwrite to false it will make file names encrypted?

According to the user guide, the overwrite function does the following:

Quote:If set to true, if a file with the same name as the one you are uploading exists, it will be overwritten. If set to false, a number will be appended to the filename if another with the same name exists.

There is a slight possibility that whenever you encrypt a file, this new encrypted name also matches a previously encrypted. By setting overwrite to false it will rewrite the old file and by setting it to true it won't rewrite the old file, it will add a number to the filename so it isn't overwritten.

Hope that helps.[/quote]

See 2nd code paste, it's part of CI Upload library, there are encrypt_name possible if only overwrite false...There is no other encrypt_name block, only that I pasted.


Messages In This Thread
Upload library question - by El Forum - 05-07-2009, 07:55 AM
Upload library question - by El Forum - 05-07-2009, 10:34 AM
Upload library question - by El Forum - 05-07-2009, 10:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB