eligrey / FileSaver.js

An HTML5 saveAs() FileSaver implementation
https://eligrey.com/blog/saving-generated-files-on-the-client-side/
Other
21.58k stars 4.38k forks source link

saveAs not using file name with url #743

Open donhmorris opened 2 years ago

donhmorris commented 2 years ago

Calling saveAs with a url as first parameter and file name as second parameter, the file name is not used when saving the file.

Example url: https://firebasestorage.googleapis.com/v0/b/freightconn-8a4ee.appspot.com/o/users%2FLVkyPGhFVKPpUbHnoRDht7oWrSJ3%2Fbols%2FA_0h9YNdy-RqmyRdyroqM.afphoto?alt=media&token=0279f554-5472-4769-a7ab-f64ba1680eeb

oreporan commented 2 years ago

any fix? seems basic..

Vishal-Isharani commented 2 years ago

Same issue.

wobushidaxingxing commented 1 year ago

I have same problem with filename,different browers download the same file is different filename

MaazKhawaja commented 1 year ago

@donhmorris have you found any workaround for this issue?

donhmorris commented 1 year ago

No. Completely forgot about this. I’ve had time to develop a fix since I reported this. I wish I hadn’t forgotten about it.