PHP: If go to upload an image exist already and sometimes want replacement what code? if this is the default, please tell me for: if not want replacement what code?
lse123
0
Junior Poster in Training
Recommended Answers
Jump to Postyes this is default behavior of PHP file uplaod script, if file is already existed there then it will overwrite your old file.
For avoid this, you need to append some unique string in your file name like "time()" so if your image name is like "abc.jpg" then it …
All 3 Replies
phpuser
1
Junior Poster in Training
lse123
0
Junior Poster in Training
phpuser
1
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.