我正在使用ASP.NetMVC5,我想为我的用户配置文件创建一个头像。我不确定我目前所做的是否正确,尤其是出于安全原因,所以我想获得一些建议。目前我在做什么在View中:@using(Html.BeginForm("ManageUser","Account",FormMethod.Post,new{enctype="multipart/form-data"})){}在Controller中:internalstaticboolSaveAvatar(Useruser,HttpPostedFileBasefile){if(file==null||file.ContentLengthMAX_