User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 391,186 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,674 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 369 | Replies: 1
Reply
Join Date: Aug 2006
Posts: 2
Reputation: gustavobrust is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
gustavobrust gustavobrust is offline Offline
Newbie Poster

Solution File upload - advanced help

  #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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2007
Location: Budapest
Posts: 251
Reputation: fatihpiristine has a little shameless behaviour in the past 
Rep Power: 0
Solved Threads: 12
fatihpiristine's Avatar
fatihpiristine fatihpiristine is offline Offline
Posting Whiz in Training

Re: File upload - advanced help

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb PHP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 7:59 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC