kennethjiang/js-file-download

download the image bug not open

biology-w opened this issue · 4 comments

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

Do not open the test. jpg image.

evliu commented

you need to pass in the data, not a URL

Thanks @evliu for helping me provide the answer!

@evliu Can you plesae share example to get link as data ?