File upload - advanced help

Reply

Join Date: Aug 2006
Posts: 2
Reputation: gustavobrust is an unknown quantity at this point 
Solved Threads: 0
gustavobrust gustavobrust is offline Offline
Newbie Poster

File upload - advanced help

 
0
  #1
Oct 27th, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 271
Reputation: fatihpiristine has a little shameless behaviour in the past 
Solved Threads: 16
fatihpiristine's Avatar
fatihpiristine fatihpiristine is offline Offline
Posting Whiz in Training

Re: File upload - advanced help

 
0
  #2
Oct 27th, 2007
i dont think you can do it...
only way creating sub directory will be good.
Do a favour, leave me alone
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 683 | Replies: 1
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC