Validate Filename on clientside

Thread is closed for posting
2 posts, 0 answers
  1. iomega 55
    iomega 55 avatar
    64 posts
    Member since:
    Dec 2004

    Posted 17 Apr 2014 Link to this post

    Is there any way for validating the filename on clientside?

    I need to upload an specific filename, so If the filename isnt the one is required the upload process must stop, avoiding the bandwith consume.

    How can I do this?

    Thanks in advance.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 18 Apr 2014 in reply to iomega 55 Link to this post


    Please have a look into the sample code snippet to achieve your scenario.

    <telerik:RadAsyncUpload ID="raduploadValidateFilenam" runat="server" OnClientFileUploading="ValidateFileName">

    <script type="text/javascript">
        function ValidateFileName(sender, args) {
            //filename to validate
            var FileName = "temporary name";
            if (args.get_fileName() != FileName)

  3. DevCraft R3 2016 release webinar banner
Back to Top