Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: uploading a file with the same name

by cybear (Monk)
on Jul 24, 2002 at 15:20 UTC ( #184885=note: print w/replies, xml ) Need Help??

in reply to uploading a file with the same name


I like your work ethic, continual improvement, but I have to
side with Abigail-II here. As Aby (can I call you Aby?) points
out. Using this script will not keep anyone from putting a file
with duplicate names on you site. I would just give you a way
of fixing the problem.

If your on a unix box try setting the sticky bit on your upload
directory. That should keep anyone but the owner of a file from
over-writing a file that already exists.

Of course, if sounds like you are staging the data before allowing
it to be posted... which is very wise.

  • Comment on Re: uploading a file with the same name

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://184885]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2018-11-13 19:02 GMT
Find Nodes?
    Voting Booth?
    My code is most likely broken because:

    Results (158 votes). Check out past polls.