How to protect and let to download a purchased file by URL in the current session? Net Core 6.

Volk Volk 571 Reputation points
2022-10-03T21:20:31.667+00:00

Hi!

I have a Ckeditor field with text on my page (the page is protected by authorization). There is a reference to the controller method in the text. How do I return a file for download from this method after some checks within the current session of an authorized user (so that no one can download this file without authorization and additional verification in the controller method).

Thanks!

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,150 questions
{count} votes