[Phpmyadmin-devel] file_echo.php

Tyron Madlener tyronx at gmail.com
Fri Aug 5 14:57:56 CEST 2011


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.

>
> --
>        Michal Čihař | http://cihar.com | http://blog.cihar.com
>




More information about the Developers mailing list