select particular key by name from HttpFileCollection
-
03-06-2021 - |
Frage
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
Keine korrekte Lösung
Andere Tipps
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];
}
}
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow