Hey thanks for the reply.

The way I am doing it is a little different. Since we get the SAVE AS dialog 
box, the user can change the extension on the file and thats where we want to 
restrict it. In the FILE TYPE option. It should not say ALL FILES (*.*)



--- In [email protected], "Flex" <myflexdownlo...@...> wrote:
>
> 
> 
> It can be done, but it does not have much to do with flex. The server side 
> that sends the file can decide what name to give the file. So in php it would 
> be something like
> 
> header('Content-Disposition: attachment; filename="export.csv"')
> 
> When you do a navigateToUrl from Flex to the url for file download brokered 
> by the type of code above, you will be prompted to download a file with name 
> with export.csv...with your xml content. Very similar syntax in java and cold 
> fusion.
> 
> Web Manager
> FlexDownloads.com
> 
> --- In [email protected], "Prabh" <schwrizer@> wrote:
> >
> > I have XML data that I wish to store on the clients machine as a CSV.
> > 
> > 
> > So,
> > 
> > 1. Is it possible to restrict the file extension to be only CSV when the 
> > client gets the Save As dialog box ?
> > 
> > you can do it on file.browse(), but I am not uploading a file. I am 
> > downloading the data to the client machine.
> > 
> >  
> > 
> > 2. If 1 cannot be done, is it possible to override the class to achieve the 
> > same ?
> > 
> >  
> > 
> > Any help would be greatly appreciated. Thanks in advance
> > 
> >  
> > 
> > Prabh
> >
>


Reply via email to