Hello everyone! :)

I'm doing a website that has lots of pages - created by the user (a wiki style) - and any page can have attachments.

The file upload engine is working ok. I'm moving all the files uploaded to a specific directory.

The problem is:
As each page have it's own files, it is possible that two pages have the README.txt file, in example. How could I prevent that one page do not overwrite the file uploaded (with the same name) by the other page?

Any ideas?

Thank you all,
Gustavo.

Member Avatar for fatihpiristine

i dont think you can do it...
only way creating sub directory will be good.

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.