Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: uploading a file with the same name

by frankus (Priest)
on Jul 24, 2002 at 13:51 UTC ( #184836=note: print w/ replies, xml ) Need Help??


in reply to Re: uploading a file with the same name
in thread uploading a file with the same name

$num=1; $imagename=$imagename. ++$num while -s "$Data/$category/$imagename";
Perhaps consider using an MD5 Sum to see if the files are the same too, to negate duplicate uploads ;)

--

Brother Frankus.

¤


Comment on Re: Re: uploading a file with the same name
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (15)
As of 2015-07-28 15:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (257 votes), past polls