Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: Renaming an image file

by BrowserUk (Pope)
on Nov 28, 2010 at 14:00 UTC ( #874102=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Renaming an image file
in thread Renaming an image file

And what happens if the site where these images are being uploaded is, or becomes, a FaceBook or Flickr?

Or any site that has multiple upload servers; and/or uses threaded servers.

Now any scheme that tries to use upload time--even to the microsecond; and with or without combination with current pid--is almost guaranteed to create duplicates.


Comment on Re^4: Renaming an image file
Re^5: Renaming an image file
by mjscott2702 (Pilgrim) on Nov 28, 2010 at 14:12 UTC
    Fair and valid point - but much bigger context than OP had asked for. For such situations, probably a (multi-threaded) database solution would be the robust way to go. But probably overkill for a local, one-off solution.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2015-07-03 07:54 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 (49 votes), past polls