Cannot resolve symbol 'HttpPostedFileBase'
My IDE does not recognise HttpPostedFileBase although my code declared using System.Web as per documentation
Could anyone tell me why my IDE (Rider) does not recognise? Do I apply the helper that we don't use anymore etc?
4 Replies
Why are you even using that
HttpPostedFileBase
in the first place...?To answer your question though, it's only supported in .NET Framework: https://learn.microsoft.com/pl-pl/dotnet/api/system.web.httppostedfilebase?view=netframework-4.8

Your code is odd in general, like still returning
Json
result as an error
Look into IActionResult
or better yet, TypedResults
Unknown User•2w ago
Message Not Public
Sign In & Join Server To View