![]() |
Uploading multiple images and renaming them problem - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Uploading multiple images and renaming them problem (/showthread.php?tid=48232) |
Uploading multiple images and renaming them problem - El Forum - 01-09-2012 [eluser]0v3rth3d4wn[/eluser] Hi! I'm uploading four images, and for each one of them I want to set a new name. I'm using a loop index and php time() function to accomplish this(I use time() because I want unique file_names every time the form is submitted). The problem is my index doesn't concatenate as it should and stays the same on every iteration. I mean the files are uploaded but they all have the same concatenated index in the filename. Here's the code: Code: for($i = 1; $i < 5; $i++) Sorry for the long post! Thanks in advance! |