Re: PATCH: Fix the issue for saving query output as CSV - Mailing list pgadmin-hackers

From Murtuza Zabuawala
Subject Re: PATCH: Fix the issue for saving query output as CSV
Date
Msg-id 70470862-26C1-4281-838E-F2C755E5C645@enterprisedb.com
Whole thread Raw
In response to Re: PATCH: Fix the issue for saving query output as CSV  (Dave Page <dpage@pgadmin.org>)
Responses Re: PATCH: Fix the issue for saving query output as CSV  (Dave Page <dpage@pgadmin.org>)
List pgadmin-hackers
Yes Dave, I agree that downloading files has been supported in browsers since long .

But in general we send request & then receives files from web server but in our case we are fetching our data from
Backbonemodels & then converting it to CSV format for downloading as a file at client side in browser itself. 


> On 28-Jun-2016, at 2:44 pm, Dave Page <dpage@pgadmin.org> wrote:
>
> On Tue, Jun 28, 2016 at 7:08 AM, Murtuza Zabuawala
> <murtuza.zabuawala@enterprisedb.com> wrote:
>> Hi Dave,
>>
>> Yes, Safari is exception case because it does not support download attribute of hyperlink <a> element.
>>
>> Ref:  http://caniuse.com/#feat=download
>>
>> I was not able to find any workaround for Safari as of now that’s is why I mentioned only Firefox & IE in my last
email,
>> Earlier it was only working on Chrome and with this patch it will work with Chrome/Firefox/IE.
>
> Well downloading files has been supported in browsers since NCSA
> Mosaic, so it's nothing new :-). We need to fix this, one way or
> another.
>
> --
> Dave Page
> Blog: http://pgsnake.blogspot.com
> Twitter: @pgsnake
>
> EnterpriseDB UK: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company



pgadmin-hackers by date:

Previous
From: Surinder Kumar
Date:
Subject: [pgAdmin4][Patch]: RM#1400 - Application loading indicator
Next
From: Murtuza Zabuawala
Date:
Subject: PATCH: 'serial' like types were missing while creating table/column (pgAdmin4)