Revert "Implemented modular architecture for filestream security sanitization with an svg-html example"

This reverts commit 18ee016ae9.
This commit is contained in:
Sven Geusens
2023-08-08 16:26:59 +02:00
parent 18ee016ae9
commit 2b3f048db7
8 changed files with 2 additions and 136 deletions

View File

@@ -187,8 +187,6 @@ public class UsersController : BackOfficeNotificationsController
//generate a path of known data, we don't want this path to be guessable
user.Avatar = "UserAvatars/" + (user.Id + safeFileName).GenerateHash<SHA1>() + "." + ext;
//todo implement Filestreamsecurity
using (Stream fs = file.OpenReadStream())
{
mediaFileManager.FileSystem.AddFile(user.Avatar, fs, true);