Secure way to support file hosting from asp.net mvc

I have an asp.net-mvc website where users can add content and links, and the data is stored in a database. Now they want to be able to upload attachments to pages, and I would like to find out a few things:

  • I have a download code that will download files (pdf, images, etc.), but I wanted to see where I should store them. Should I store them outside the website directory structure?

  • Are there any types of files that I should consider when storing. I would basically have a front-end file collector.

+3
source share
1 answer

, (pdf, ..), , . -?

. App_Data , . - . - . SQL Server 2008 FILESTREAM .

, . .

. , , , .

+4
source

Source: https://habr.com/ru/post/1790186/


All Articles