Hi there , You can create an PageAction that return an actionResult that is set to the given file type (e.g text) .
Then create a link that points to the page action eg ..... href="$path?pageAction=getMyFile" Something like that. Josh. On Thu, Jan 12, 2012 at 12:55 AM, foxesout <[email protected]> wrote: > Hello everyone > > What is the best way to download files from a click application? > > I would like to download to a text file, probably using the background > thread. > I need the user to click a link and see a popup where they can choose to > Save, Open or Cancel action. > If Save - they need to specify the file location. > If Open - they will need some "please wait" or a moving image while they > wait for the file to be generated. > > What is the most common way to implement a file download in Click? > Thanks so much. > > -- > View this message in context: > http://click.1134972.n2.nabble.com/File-Download-with-Click-tp7177975p7177975.html > Sent from the click-user mailing list archive at Nabble.com. >
