This topic is locked

same name image or document when uploaded r problem ?

6/21/2007 7:36:26 AM
ASPRunnerPro General questions
B
build2 author

In my table there is a picture field,

every time someone adds another photo by the same name like bill.jpg then again bill.jpg for another bill It doesn't check there was already a bill.jpg in the table so it should have autmatically done bill(1).jpg in the thumbnail and also in database and should have rename the new uploaded image for the ew record. (This feautre is avaiable in the another app i had been using to make asp )

I am in major mess, how can i fix this problem so it should check first if the same name of image already exisits in the database and or in files folder then it should rename the new image.

I am sure you might already have a smart solution or file for this, Let me know if you have already fixed the solution for this or this is a FLAW and we will have to deal with it, boy it will be be hard for me. let me know if you coud guide me , i guess the same probem will occur for same document names when uploaded etc....
I hope to get feedback ASAP.

thx.

Sergey Kornilov admin 6/21/2007

Tim,
use an option to add a timestamp to the file name.