Alert supported extensions

Thread is closed for posting
2 posts, 0 answers
  1. Karl Ranville
    Karl Ranville avatar
    28 posts
    Member since:
    Mar 2013

    Posted 24 Apr 2013 Link to this post

    Hi,

    I want to alert the allowed file extension when the user try to upload files of unsupported extensions. Please help soon.. Urgent requirement.

    Thanks for reply in advance,
    K.R
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 24 Apr 2013 Link to this post

    Hi,

    Please try the following JavaScript in the OnClientFileSelected client event of the RadUpload.

    JavaScript:
    if (!sender.isExtensionValid(eventArgs.get_fileInputField().value)) {
        alert("Supported File Extensions are " + sender._allowedFileExtensions);
    }

    Thanks,
    Shinu
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top