I am resending this because I think it never made it to the list.  
Apologies for any double post.



Hi all,
I have a file uploader for images in Flex. It submits to a CF script  
which in turn returns an XML tree containing a list of all uploaded  
files.
Yesterday the system stopped working and I tracked it down to a single  
image which had some strange characters in its filename (they looked  
foreign, or at least not familiar). The filename of the uploaded image  
broke my application.

I'm sure this is an easy one: is there a CF function or similar I can  
apply to the image name that would convert any non-conforming  
characters t something that does not cause problems later on,  
especially once the filename is included inside an XML structure?

Right now this is how I write the XML:

            <cfxml variable="userXML">
                <cfoutput>
                <brainwave action="#FORM.action#" status="success">             
                        
                <cfloop query="fetchassets">
                <asset id="#id#" type="#assettype#" width="#width#"  
height="#height#">
                    <path>#path#</path>
                </asset>
                </cfloop>
                </brainwave>
                </cfoutput>
            </cfxml>

And here's my upload:

<cffile action="upload" filefield="Filedata" destination="#clientdir#"  
nameconflict="makeunique" />


Be gentle, I am from the Flash/Flex side of the fence so CF is not my  
mother-tongue.


Cheers

Stefan



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:5244
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to