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