I need to free the process or close the file of httppostedfilebase , so i don't know how to use using with httppostedfilebase , i need to do something like this :
using (var myFile = Request.Files[0])
{
// do something
}
I need to free the process or close the file of httppostedfilebase , so i don't know how to use using with httppostedfilebase , i need to do something like this :
using (var myFile = Request.Files[0])
{
// do something
}
you can use IFormFile .IFormFile is in the following namespace Microsoft.AspNetCore.Http.
for multuple files