Re: Unable to upload files withe same name twice?
Posted: 25 Apr 2015, 02:19
Hello
by trial and error (dont really know what I'm doing!) I got this script working and can now upload from _ _. File name image.jpg becomes image_1.jpg, image_2.jpg etc..
1. Follow intsructions above.
2. add $file_Name = $file['name']; to list of variables in the new code
3. edit all instances of $this->file_Name in new code to $file_Name
bingo - it now works.
Probably someone can do a better job.
Terry
by trial and error (dont really know what I'm doing!) I got this script working and can now upload from _ _. File name image.jpg becomes image_1.jpg, image_2.jpg etc..
1. Follow intsructions above.
2. add $file_Name = $file['name']; to list of variables in the new code
3. edit all instances of $this->file_Name in new code to $file_Name
bingo - it now works.
Probably someone can do a better job.
Terry