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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2018-07-23 03:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (459 votes). Check out past polls.

    Notices?