Can't you just use urlencode tag to view that image like normal.

<img src="./PHOTOS/#URLENCODEDFORMAT(Image)#">



On 4/13/06, Adrian Lynch <[EMAIL PROTECTED]> wrote:
>
> The problem with renaming files is that someone might upload "spaces in
> this
> file.gif" and another "spaces  in  this  file.gif". Removing all spaces
> will
> mean the file names are the same.
>
> I tend to let CF rename the files and then store the file as the client
> knows it and as the server knows it, both in the DB.
>
> Adrian
>
> -----Original Message-----
> From: Gilbert Midonnet [mailto:[EMAIL PROTECTED]
> Sent: 13 April 2006 17:05
> To: CF-Talk
> Subject: RE: cffile and names with spaces
>
>
> Use a regex to remove the space and save it as spacestation.gif
> #Replace(FORM.file," ","")#  should do the trick.
>
>
>
> gil
>
>
>
> -----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 Johnso
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237682
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