select particular key by name from HttpFileCollection
-
03-06-2021 - |
문제
how to select particular item from HttpFileCollection Object
HttpFileCollection uploads = default(HttpFileCollection);
uploads = HttpContext.Current.Request.Files;
I want to select some keys from uploads
올바른 솔루션이 없습니다
다른 팁
If I understand you need
if (context != null)
{
if (context.Request.Files.Count > 0)
{
var file0 = context.Request.Files[0];
var file1 = context.Request.Files[1];
}
}
제휴하지 않습니다 StackOverflow