[pgAdmin4][runtime]: Download feature in runtime

Поиск
Список
Период
Сортировка
От Neel Patel
Тема [pgAdmin4][runtime]: Download feature in runtime
Дата
Msg-id CACCA4P2eP9URRcHXXiPftxodmV_da57pjSw9PKLgpjEHjrb6MQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: [pgAdmin4][runtime]: Download feature in runtime  (Dave Page <dpage@pgadmin.org>)
Список pgadmin-hackers
Hi,

Please find attached patch file for initial version of download file in runtime application.

With this patch, we have implemented two features.

Feature 1 :- Normal "Download file" from runtime application

Previously "Download file" was not implemented in runtime application.
With this patch file, we have handled Qt signal for download file properly.

Feature 2 :-   "download" attribute support for 'a' tag for client side download

As per our knowledge, webkit has not implemented the download attribute at 'a' tag. 
Currently it shows under development from below link.


We did not found any signal in Qt for download attribute feature but to implement this feature in runtime application, we added one workaround to make it work with download CSV file.

When we click on download buttons, we are getting Qt signal "urlLinkClicked" and in that url we are finding "data:text/csv" from encoded URL generated from sqleditor. Once we found that tag then we are decoding the csv data and writing to file.

Is that right approach ? Should we add our own custom mime-type to header ?
Let us know your thoughts on this feature.


Please review it and let us know comments.

Thanks,
Neel Patel

Вложения

В списке pgadmin-hackers по дате отправления:

Предыдущее
От: Dave Page
Дата:
Сообщение: Re: Fix for issue RM1336 [pgadmin4]
Следующее
От: Murtuza Zabuawala
Дата:
Сообщение: Re: PATCH: to fix jsonb type rendering in runtime (pgAdmin4)