Re: [Cppcms-users] Creating and downloading reports at run-time
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2012-06-03 07:28:55
|
----- Original Message ----- > From: "ele...@ex..." <ele...@ex...> > To: Artyom Beilis <art...@ya...>; cpp...@li... > Cc: > Sent: Sunday, June 3, 2012 3:13 AM > Subject: Re: [Cppcms-users] Creating and downloading reports at run-time > > >> Yep :-), that's it > > Too easy. > > How do you set the name of the file when returning a buffer? (you know > when the client is shown a dialog to save/open the file) > > Is that done with Content-Location header? > No, it is done using Content-Disposition header: Content-Disposition: attachment; filename=myfle.pdf Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ |