Thanks,
I have just comment
//header('Content-Disposition: attachment; filename='.basename($filename));
On Mon, Dec 21, 2009 at 7:41 PM, Fabian Lange <
fabian.la...@symfony-project.com> wrote:
> No thats the way to do.
> If it opens rather than download, its because of the mime type actions
> i
No thats the way to do.
If it opens rather than download, its because of the mime type actions
in the browser.
You cannot affect that.
The best way is to have a link which the user can 'save to'
Fabian
On Mon, Dec 21, 2009 at 2:49 PM, Gábor Fási wrote:
> Ultimately it is up to the user, but you
Ultimately it is up to the user, but you can try inline instead of attachment.
On Mon, Dec 21, 2009 at 14:01, DEEPAK BHATIA wrote:
> Hi,
>
> The below action opens the excel document in the Microsoft Excel. But I want
> to open this in Browser. Please help.
>
> public function executeSamplexls()
Hi,
The below action opens the excel document in the Microsoft Excel. But I want
to open this in Browser. Please help.
public function executeSamplexls()
{
$filename='sampletemplate.xls';
$filename = '/opt/lampp/htdocs/wbrt/web/uploads/'.$filename;
if(file_exists($filename))
{