replace(form.file," ","_","all") should do the trick.

> -----Original Message-----
> From: Jerry Johnson [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, April 13, 2006 11:40 AM
> To: CF-Talk
> Subject: cffile and names with spaces
>
> I have a simple form to upload an image.
>
> I use cffile to upload the file.
> I then use cffile.serverfile to get the name of the uploaded file
>
> If the user uploads a file called "space.gif", all is well.
> If the user uploads a file called "space station.gif", not so much.
>
> The file saved to disk is "space%20station.gif"
> The value in serverfile is "space station.gif"
>
> And the two don't match.
>
> I am obviously doing something wrong. Any hints?
>
> Jerry Johnson
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237677
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to