[Phpmyadmin-devel] file_echo.php

Michal Čihař michal at cihar.com
Mon Aug 8 18:05:22 CEST 2011


Hi

Dne Fri, 5 Aug 2011 15:57:56 +0300
Tyron Madlener <tyronx at gmail.com> napsal(a):

> resending to list..
> 
> On Fri, Aug 5, 2011 at 2:08 PM, Michal Čihař <michal at cihar.com> wrote:
> > Hi
> >
> > Dne Fri, 5 Aug 2011 13:34:07 +0300
> > Tyron Madlener <tyronx at gmail.com> napsal(a):
> >
> >> Commit d368a81ccaf2c1013bd49cbf51ec23be346aeffb and
> >> 9f425de0e727b4219e50111b25c362164d420284 does this now.
> >>
> >> I had to use text/plain though because some browsers like FF doesn't
> >> understand application/json (and offers the file to be downloaded).
> >
> > You need to change only Content-Type and not Content-Disposition as
> > PMA_download_header does. Then application/json should work just fine
> > in all browsers.
> 
> I didn't use content-disposition. Only content-type I've set.

Right, probably browser handles differently whether it is GET or POST
request...

-- 
	Michal Čihař | http://cihar.com | http://blog.cihar.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20110808/82a5dced/attachment.sig>


More information about the Developers mailing list