Thatguy2001au
10-11-2002, 03:03 AM
Hey There
I was hoping someone could perhaps give me an idea on something. I am in the process of developing a classifieds site where people can upload images with their advertisements. At the moment i am not storing the images in the actual database but instead in it's own seperate folder on the server.
The problem arises when an image with the same name as one that is already on the server gets uploaded. It overwrites the already existing file and the advertisement that previously had the other picture now shows the new one that has been uploaded.
Is there any way of avoiding this or renaming the file if it already exists without having to upload the picture into the database. I want to try and keep the size of the database as low as possible.
Any help will be much appreciated.
I was hoping someone could perhaps give me an idea on something. I am in the process of developing a classifieds site where people can upload images with their advertisements. At the moment i am not storing the images in the actual database but instead in it's own seperate folder on the server.
The problem arises when an image with the same name as one that is already on the server gets uploaded. It overwrites the already existing file and the advertisement that previously had the other picture now shows the new one that has been uploaded.
Is there any way of avoiding this or renaming the file if it already exists without having to upload the picture into the database. I want to try and keep the size of the database as low as possible.
Any help will be much appreciated.