Hi All,
I'm using Visual Studio 2002 with .NET 1.0. Users have the ability to upload files to my ASP.NET application, and for that, I use the HtmlInputFile control. I have the following code below:
This code has always worked. Now, however, I have a file named "xyz12-8-05.xls", and my application freezes when it reaches the line above with this file. Anybody knows what's going on?
Thanks.
JC
_________________________________
I think, therefore I am. [Rene Descartes]
I'm using Visual Studio 2002 with .NET 1.0. Users have the ability to upload files to my ASP.NET application, and for that, I use the HtmlInputFile control. I have the following code below:
Code:
string fileName = Regex.Match(inputFileUpload.PostedFile.FileName.Trim(), @"((?: )|(?:\w+))+\.xls$").Value;
This code has always worked. Now, however, I have a file named "xyz12-8-05.xls", and my application freezes when it reaches the line above with this file. Anybody knows what's going on?
Thanks.
JC
_________________________________
I think, therefore I am. [Rene Descartes]