Welcome Guest, Not a member yet? Register   Sign In
Help Needed : Upload File Exists Validation
#1

[eluser]aslamdoctor[/eluser]
I am trying to develop a code to validate that the file which is about to upload is already exists or not,

for that I have to do something as following

Code:
if(!file_exists($config['upload_path'].$filename))
{
      $this->upload->do_upload();
}
else
{
      echo "File exists..."
}

now the problem here is, how do I get the $filename, if I use $_FILES , it will give the actual file name,
here I need the filename that CI generates during uploading by reducing special characters.


Messages In This Thread
Help Needed : Upload File Exists Validation - by El Forum - 09-22-2008, 11:49 PM
Help Needed : Upload File Exists Validation - by El Forum - 09-23-2008, 12:09 AM
Help Needed : Upload File Exists Validation - by El Forum - 09-24-2008, 12:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB