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

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

katgirl,

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://184885]
help
Chatterbox?
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
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My code is most likely broken because:
















    Results (158 votes). Check out past polls.

    Notices?