So you do an upload and then a rename?

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]

---------------------------------------------------------
Macromedia Associate Partner
www.macromedia.com
---------------------------------------------------------
Vancouver Island ColdFusion Users Group
Founder & Director
www.cfug-vancouverisland.com
  ----- Original Message -----
  From: Tangorre, Michael
  To: CF-Talk
  Sent: Thursday, December 04, 2003 10:04 AM
  Subject: RE: CFFILE a few things

  I always rename files and images that users upload, but I make sure to hold
  on to the original name. I rename the files to a UUID that way I do not have
  to worry about the naming conflicts and I still have the original name to
  use for display purposes, i.e... "click here to edit this image", etc..

  Mike

  -----Original Message-----
  From: Bryan Stevenson [mailto:[EMAIL PROTECTED]
  Sent: Thursday, December 04, 2003 1:04 PM
  To: CF-Talk
  Subject: CFFILE a few things

  Hey All,

  A couple issues that I'm wondering how others handle:

  1) Uploading an image file with spaces in the name.  Do you upload
  it...check file name on server for spaces...if spaces found rename it
  (removing spaces so the image can be displayed in a browser)?  Is there a
  faster way of doing this?

  2) When using the "move" action, there is no option to handle name
  conflicts!!  Do you then have to do a try/catch around the move and if an
  error is found try another file name (seems pretty clunky to me)??

  TIA

  Cheers

  Bryan Stevenson B.Comm.
  VP & Director of E-Commerce Development
  Electric Edge Systems Group Inc.
  t. 250.920.8830
  e. [EMAIL PROTECTED]

  ---------------------------------------------------------
  Macromedia Associate Partner
  www.macromedia.com
  ---------------------------------------------------------
  Vancouver Island ColdFusion Users Group
  Founder & Director
  www.cfug-vancouverisland.com
    _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to