[eluser]Unknown[/eluser]
There is an error message in CodeIgniter
Quote:The file name you submitted already exists on the server
Does that make any sense? Let me explain.
There is a preference in File Uploading Class preferences called "overwrite". It can be TRUE or FALSE. The default value is FALSE. If it's TRUE, then the file will be overwritten. If it's FALSE, then a number will be appended to the filename if another with the same name exists. So, either it'll overwrite the file or it will rename the file. How is it possible to get the above error?
So, it looks like CodeIgniter is unable to rename the files properly.
I looked at my database and found how CodeIgniter has renamed the files. Though there are no other file exists with the same name, some of the filenames are appended an underscore ( _ ), but no number after that. I also found that when I tried to upload a file with file name as "myfilename.zip" several times, "myfilename_.zip", "myfilename_1.zip", "myfilename_2.zip" ... "myfilename_11.zip" found at the upload path. But "myfilename.zip" is not found there and instead of creating "myfilename_12.zip", it showed me the above error.
So, where is the issue? How to solve this?
BTW, I am using CI 2.1.2. If I will upgrade it to 2.1.3, will it fix this issue?