How do you code for that, Adam?

Rick



    >  -----Original Message-----
    >  From: <"Cantrell>,Adam" [mailto:[EMAIL PROTECTED]]
    >  Sent: Wednesday, February 12, 2003 12:05 PM
    >  To: CF-Talk
    >  Subject: RE: cffile with unique names
    >
    >
    >  That's true Darren, it will only make unique if there is a
    >  conflict - hence
    >  the attribute name: 'nameConflict'. If there isn't already a
    >  file name that
    >  you're trying to upload, then the server assumes it's
    >  already unique ;) Now
    >  that's a smart server.
    >
    >  One thing I like doing instead of just using unique file
    >  names, is to rename
    >  the file using its original client file name prepended with
    >  the ID from the
    >  database record you're using to reference it. This gives you
    >  the benefit of
    >  clarity in still having the original file name in there,
    >  having it also be
    >  unique, and also having a reference from the file name to
    >  the record if you
    >  ever needed that for anything.
    >
    >  Adam.
    >
    >
    >  > -----Original Message-----
    >  > From: Ben Doom [mailto:[EMAIL PROTECTED]]
    >  > Sent: Wednesday, February 12, 2003 10:26 AM
    >  > To: CF-Talk
    >  > Subject: RE: cffile with unique names
    >  >
    >  >
    >  > IIRC, the unique filenames only get assigned if a file exists
    >  > with that
    >  > filename already.  That is, if you upload two pictures named
    >  > pic.gif, the
    >  > first one is stored as pic.gif and the second as
    >  > A02983467.gif or something
    >  > wacky like that.
    >  >
    >  >
    >  > --  Ben Doom
    >  >     Programmer & General Lackey
    >  >     Moonbow Software, Inc
    >  >
    >  > : -----Original Message-----
    >  > : From: Paul Giesenhagen [mailto:[EMAIL PROTECTED]]
    >  > : Sent: Wednesday, February 12, 2003 11:18 AM
    >  > : To: CF-Talk
    >  > : Subject: Re: cffile with unique names
    >  > :
    >  > :
    >  > : Are you saying that if you update picture.jpg and then output
    >  > : #cffile.serverFilename# it returns picture.jpg?
    >  > :
    >  > : And you have your CFFILE set to unique?
    >  > :
    >  > : Could you post your CFFILE code?
    >  > :
    >  > : Thanks
    >  > :
    >  > : Paul Giesenhagen
    >  > : QuillDesign
    >  > :
    >  > :
    >  > : ----- Original Message -----
    >  > : From: "Darren Adams" <[EMAIL PROTECTED]>
    >  > : To: "CF-Talk" <[EMAIL PROTECTED]>
    >  > : Sent: Wednesday, February 12, 2003 10:03 AM
    >  > : Subject: cffile with unique names
    >  > :
    >  > :
    >  > : > Hello,
    >  > : >
    >  > : > I am uploading an image and then inserting a record into
    >  > the database.
    >  > : >
    >  > : > So that there are no name clashes I have set the tag to
    >  > make unique
    >  > : > files names.
    >  > : >
    >  > : > However,  when I refer to the uploaded file name e.g.
    >  > : > cffile.serverfilename etc.
    >  > : > It seems to list the name of the file before it was
    >  made unique.
    >  > : >
    >  > : >
    >  > : > Has anyone else experienced this and do you know what
    >  going on ?
    >  > : >
    >  > : >
    >  > : > Thanks,
    >  > : >
    >  > : > Darren Adams
    >  > : >
    >  > : >
    >  > : >
    >  > :
    >  >
    >  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to