This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private object uploadFile(string filename) | |
{ | |
//I've multiple fileupload controls in my form, that's why I am passing the name property of my fileupload control here | |
if (Request.Files.Count > 0) | |
{ | |
HttpFileCollection files = Request.Files; | |
string[] keys = files.AllKeys; //Extracting the name of all files (which actually is the name of html file control) in order to identify the correct file w.r.t control | |
for (int i = 0; i < files.Count; i++) | |
{ |