0

I follow this URL to export Chart.js chart to image using download button and it works. And here is the image result: enter image description here

If I click save button the image will download in my PC.

My Question is:

Is there any way or a script so that the image can be downloaded to the server's own folder as if there is a user who clicks to the Save button? For example once a day, the script will download the image by pressing the button and save the image to the server folder.

Please give me the enlightment.

arieffirdaus
  • 63
  • 1
  • 7

1 Answers1

1

The link you provided saves image using blob in saveas function. So what can you do is send the same blob to server using ajax call. refer this link: How can javascript upload a blob?