ive got an upload file form and it can have as many fields as a user wants to add images but say the user accidently pushes submit and the images upload (they are renamed as 1.jpg, 2.jpg, 3.jpg etc etc) but the user still wants to upload more images.....is it possible for php to read a directory and check what the filenames are and then renamed all extra images that are uploaded starting from the next digit?
so if there is already a 1.jpg and a 2.jpg once more pictures are uploaded it starts from 3.jpg and so forth....ive tried looking for something like this but dont know where to start.
thanks
so if there is already a 1.jpg and a 2.jpg once more pictures are uploaded it starts from 3.jpg and so forth....ive tried looking for something like this but dont know where to start.
thanks
Comment