B
Ben Crinion
Hi
I have a page with a html <input type="file"> element on it and i am using a
regular expression validator to ensure that the user is uploading an image
to my server.
Here is my regular expression
/^(([a-zA-Z]
|(\\{2}\w+)\$?)(\\(\w[\w].*))+(.gif|.GIF|.jpg|.JPG|.jpeg|.JPEG|.bmp|.BMP)$/
It should match "C:\any directory\structure\you like\any image name with an
extension from the list above.gif"
This works in perl and correctly matches but it doesnt match in .NET.
The funny thing is im sure this has worked in the past because i have images
on my site which have been uploaded using it. I recently upgraded my code
from ASP.NET 1.1 to ASP.NET 2.
Thanks
Ben Crinion
I have a page with a html <input type="file"> element on it and i am using a
regular expression validator to ensure that the user is uploading an image
to my server.
Here is my regular expression
/^(([a-zA-Z]
It should match "C:\any directory\structure\you like\any image name with an
extension from the list above.gif"
This works in perl and correctly matches but it doesnt match in .NET.
The funny thing is im sure this has worked in the past because i have images
on my site which have been uploaded using it. I recently upgraded my code
from ASP.NET 1.1 to ASP.NET 2.
Thanks
Ben Crinion