After the file is uploaded, you should be able to use the
#cffile.serverFile# variable to get the filename that was saved on the
server.  Can you use that to delete it?

<cffile action="delete"
file="D:\VirtualSites\test_\ccsbt\documents_directory\#cffile.serverFile#">

HTH,
Tim P.

-----Original Message-----
From: Seamus Campbell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 7:25 PM
To: CF-Talk
Subject: cffile - probs with spaces in file name


Hi

I'm having a problem with CFFILE that I hope someone may be able to help me
with

I'm uploading and deleting files.

If a file is uploaded with spaces in the file name - it cannot be deleted -
gives this error:
Unable to delete the file 'D:\Virtual
Sites\test_\ccsbt\documents_directory\Copy test.pdf.' The system cannot
find the file specified. (error 2)

If I put the same file up with no spaces there is no problem.

The file name on the server actually puts an underscore in the space

Any clues on how to fix this

MTIA

Seamus



______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to