Posted on: 7/21/2015 8:01:58 PM | Views : 659


hi,
I am allowing users to upload an MP3 file but I want to limit the size to 10MB Maximum.
how could i adapt the code below?
        // File Upload Audio File //         FileUpload File2 = (FileUpload)CreateUserWizardStep1.ContentTemplateContainer.FindControl("Audio1");         if (File2.HasFile)         {             string fileExt = System.IO.Path.GetExtension(File2.FileName);             if (fileExt == ".mp3")             {             &n ...

Go to the complete details ...