Hi. I'm using ImageFields in my portal application and allowing people to upload their photos. Since digital camera software creates rather predictable file names, I've now got loads of files like this: PICT0006.JPG PICT0006_.JPG PICT0006_.jpg PICT0006__.JPG PICT0006__.jpg PICT0006___.JPG PICT0006____.JPG PICT0006_____.JPG PICT0006______.JPG PICT0006_______.JPG PICT0006________.JPG PICT0006_________.JPG PICT0006__________.JPG PICT0006___________.JPG and It's only going to get worse as time progresses. Since the file names are being used in URLs, these URLs are becoming more and more wierd.
How would I go about changing my ImageFields to start appending _1 _2 _3 and so on until the filename is unique? So that in the above example I'd have PICT0006_.1JPG PICT0006_.2JPG PICT0006_.3JPG PICT0006_.4JPG ... and so on, which is infinitely more legible. Thanks for your help, Daniel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---