Author: Robbied81 | Posted on: 7/7/2009 8:25:20 AM | Views : 276

Just wondering if someone can help me.  I am creating a fileupload control which checks for file size and file type.  For the sake of this example, I want to upload anything that is not a jpeg and less than 1MB.  My code is posted below.  From what I can see, the file  size is tested and works correctly, however whenever I try to test an extension it doesn't.  Here is the code:
 
Protected Sub UploadButton_Click(ByVal sender As Object, Go to the complete details ...