hello, Everyone,
Hope everyone is fine.
I am trying to download the file in my MVC code using html5 download attribute.
It works with following code:
but I want to download a file from my online URL like :
But it opens the file in new tab, which should not be. It should download that file.
Thank you in advance

Sachin SinghRank #66 · 26.2K reputationPosted Aug 8, 2020, 9:00 AM EDT
Guest UserRank #2,192 · 643 reputationPosted Aug 8, 2020, 9:19 AM EDT
I have tried your solution, but i am not getting what should i return in method 'somefile'
Guest UserRank #2,192 · 643 reputationPosted Aug 14, 2020, 7:10 AM EDT
Aman GuptaRank #193 · 12.4K reputationPosted Aug 8, 2020, 8:14 AM EDT