cloudspout-button-panel icon indicating copy to clipboard operation
cloudspout-button-panel copied to clipboard

Download Button should be able to download the file

Open sameoo opened this issue 5 years ago • 5 comments

Hi,

We have one urgent request, we are trying to download the file using API, we are seeing the response data as encoded content. We need to download the file on click. we are using flask API from flask.send_file

sameoo avatar Dec 18 '20 09:12 sameoo

Hi, we have the same requirements. Our API call is producing a plain text file, that needs to be downloaded by the user. Is there a solution for this already?

xerocobra avatar Jan 12 '21 09:01 xerocobra

Hello! I need the same feature. I would like to download files when clicking. Thanks!

flistonfr avatar Oct 04 '22 16:10 flistonfr

+1 would really love if downloading works.

rakesh94 avatar Mar 07 '23 13:03 rakesh94

+1 would really love if downloading works. Is there a solution for this already?

A-BenMao avatar Jun 08 '23 07:06 A-BenMao

Seems like this issue or the repo is abandoned. I have moved out of this plugin and commenting here the workaround so any other future googlers can find it.

Grafana has a inbuilt text panel which allows HTML code to be written. You can also add javascript and include scripts on your own. So i wrote a button that calls a function in the script tag. The script tag calls the get api using fetch api call. If you want to stream the response and store it on runtime, the streamsaver js can be added and made use of to download the file in stream.

rakesh94 avatar Aug 29 '23 12:08 rakesh94