Help with inserting renamed upload files to the database
I have created a simple upload form that uploads a file to a specified folder and inserts the name of the uploaded file to my database. My question is, how do I insert a file name into the database that has been renamed by digital file pro? Example: I upload dog.jpg. The image is uploaded to my folder and the name of my image dog.jpg is inserted in my database. If upload the same image of dog.jpg, the image is renamed as dog_1.jpg and uploaded to my folder but the name of the image is inserted as dog.jpg.