Shiny downloadHandler doesn't save PNG files

后端 未结 1 1047
既然无缘
既然无缘 2021-01-22 17:01

I\'ve got my download function to do everything right, when the save as screen comes up, the file name I specified appears. When I click on save the window closes, but no file g

1条回答
  •  借酒劲吻你
    2021-01-22 17:42

    You want

    contentType = 'image/png'
    

    not

    contentType = 'application/png'
    

    Although I don't think that's the problem. Are you running it within RStudio's preview pane or in an external browser? I had the same problem with downloading when using the preview pane but it worked fine on my browser.

    0 讨论(0)
提交回复
热议问题