This example demonstrates how to validate an extention of selected file before uploading it to the server.

Uploaded file will be stored to the "UploadedFiles" folder that is located in the root directory of an examples.
You should grant write access to "UploadedFiles" folder to the ASP.NET process identity(typically {MACHINE}\ASPNET on IIS 5
or Network Service on IIS 6).

Only files with ".jpg", ".jpeg", ".gif" or ".png" extentions are allowed.
 



Other examples       View C Sharp source code   View VB NET source code

Used files: Bin\EasyAlgo.EAUpload.dll, web.config, ValidateFileExtention.aspx, ValidateFileExtention.aspx.cs, ExamplesStyle.css [Optional]