download the image bug not open
biology-w opened this issue · 4 comments
biology-w commented
import fileDownload from 'js-file-download'
fileDownload('https://goss.vcg.com/fabb02f0-3c8f-11e8-84d4-a5652b728265.jpg', 'test.jpg')
download the iamge bug not open
biology-w commented
Do not open the test. jpg image.
evliu commented
you need to pass in the data, not a URL
kennethjiang commented
Thanks @evliu for helping me provide the answer!
sajidunnar commented
@evliu Can you plesae share example to get link as data ?