Hi,
here's my code for uploading an image and displaying the size. (pasted at bottom)
because I'll have many users uploading it to the same folder, how can I add an ID to each image so that no image names will ever be the same? For example, is it possible to rename an image from image.gif to image1.gif and increment the number? I guess it will involve a database ID?
If this will be hard to code, is there any simpler way to make sure that non of the images will have the same name? (I don't want to have to ask the users to make sure the file name already exists)
Also, I also like to replace characters such as space, % or invalid url characters with an underscore or just remove it.. how do I do it?
Thank you for your time!