Home
Why are You Annoyed Today Forum Home
01/19/12 11:54
Why are You Annoyed Today RSS Feed

  'Video: How to check file extension in file upload using regular expression contr' Your Clients  

Are you Angry? Post your related message now.
Let off some steam! But keep it clean! No names. No business names.
, hdspa modems: Annoyed by Globe and Smart
us


(Login / Register)



Advertisement:
Your ad here free



Recent Notes and Tags
Search Tags:


Top Searches: • javascript file extension regex • javascript regex file extension • java regular expression file extension • javascript regular expression for filetype • how to validate file extension in javascript using expression • asp find file without extension • regular expression for file extension in asp net • how to validate video upload • code for how to check the video file extensoin in asp net • get file upload extension in asp net • regular expression for media file type • pattern matching in java • video file upload validation in javascript • regex for file extension asp example • c client check file extension • java regex fileextension • validate file extension at client site by regular expression • regular expression for file upload in asp net • javascript check regex valid file extension • video extention regex • asp net regex get extension • java regex get file extension • videos extension javascript • c regex file extension • file upload validation using regular expression • javascript regular expression check file extension • file extension regular expression asp net • regular expression for valid video extension • how to check the video file extensoin in aspnet • asp net regex validate server • javascript file without extension • regular expression validator for video uploads •

Video: How to check file extension in file upload using regular expression contr

- Your Clients

Forum Post

Waynesville, Illinois

Video: How to check file extension in file upload using regular expression contr

Thank author of this post/commentHow to check file extension in file upload using asp.net regular expression There are 2 ways to check file extension 1.Server side 2.Client side Server side -- Languages: C#, VB etc... advantages: easy to implement, no need to know java script dis advantages: checks file extension after the file has been uploaded to the server. Client side -- Languages: Java Script advantages: checks the extension in the user's computer itself because java script runs in the browser. dis advantages: hard to implement, spend a lot of time searching for the code on the internet. We will focus on Client side validation because we dont want the user to wait for the file to upload and then get a message saying that the file extension is not supported. users will get annoyed and they will never return to your site. Asp.net has a control for validating the user input called the "Regular Expression validator". What it does is it creates the java script code for us and matches the input with the expression By default it comes with expressions to validate phone number, email id etc.. There are books on how to write Regular expressions. Lets not get deep into it. So wat we will do is 1.Add file upload control 2.Add regular expression validator 3.Set the control to validate property of regular expression validator to the ID of file upload control 4.copy and paste the expression Thats it! I found this expression on a website ^(([a-zA-Z]:)|(//{2}/w+)/$?)(//(/w[/w].*))(.gif|.jpg <b>...</b>

Reply Options
Share your opinions, advice, questions or comments on this post.

You must a registered user and logged in to use this feature:

It is quick easy and offers many advantages when using our site.

Social Networking

Share this with your friends on facebook, twitter and Google+

Social sharing because it feels good:
 

Related

Some related posts that may be of interest to you.

Related posts:

Related posts on other sites:


Tags and Tagging

Tags help organize related posts and resources by topic.

serverjavajavascriptvb nethow toasp netfile name extensionregexregular expression



This is the place for angry people! Have you added a link to us from your website? (3101576299):
  • <a href="http://forum.annoyedtoday.com">Why are You Annoyed Today</a>
  • <a href="http://forum.annoyedtoday.com/Your_Clients">Your Clients: Video: How to check file extension in file upload using regular expression contr </a>
Your Clients: Video: How to check file extension in file upload using regular expression contr Copyright (c) 2008-2011 GLR Sales LLC.
(qzqzwzw)

Privacy & DMCA Policy
Your Clients 'Video: How to check file extension in file upload using regular expression contr'
Classification: Forum