Hello.
Let me explain my problem :
I am using ASP.NET Core 2 and developing a site for download file.
I have a site on Server A and my files are on Server B that are not in site server (my site is on shared hosting).
Users should be logged in and other conditions to download file, so at first i need to validate user conditions (is logged in, did pay and ...) that i should do validations in site.com
then if user passed all conditions download should start.
As you can guess user should not see original file link (because he/she can copy download link to download managers and download without checking validations download file).
So my questions :
1. I need to download files from Server B
2. Download link should not show to user and he/she should see temporary download link.
I have made this in ASP.NET WebForms that it works fine (in handler i wrote validations and if passed file writes to stream) but now i need something like this in ASP.NET Core.
I search many times but no result, i beg you please help me, i am very confused and disappointed.