select particular key by name from HttpFileCollection

511 views Asked by At

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

1

There are 1 answers

1
Mediator On

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];
                }
            }