I have a problem, i have two files with same name and it required to upload on site without renaming file both are jpg file, in one database it's my task how can i complete this task?

Recommended Answers

All 3 Replies

That's more of a test to me. Not sure if you can put two of them without changing names so the best you can do is keep the name but add a suffix
Example:
HR Document
HR Document(1) and so on

You have to alter the names in some way. You can't have 2 files with exactly the same name in the same folder.

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.