I’ve a submit discussion form with image upload in my website. Now, I want to upload a unique file name when the user submits their image so that I can show the result of all images and can avoid duplicate file names.
How can I do this with php? If you need my form process code then I’ll upload it.
You can use the
uniqid()function to generate a unique ID