Filter Uploade File Type

Thread is closed for posting
2 posts, 0 answers
  1. Ching-Yen
    Ching-Yen avatar
    65 posts
    Member since:
    Nov 2007

    Posted 24 Apr 2008 Link to this post

    Hi,

    I noticed that we can actually limit the file type being uploaded when using the RAD Upload. But, I think it's funny that the tool will "upload" the entire file, then only prompt user the file is not supported. Means that let say, the user is uploading a 500MB file, they need to wait until the file fully uploaded, then only they could realized the format is not supported.

    Is that any possible way to prompt the user before it start the uploading? and Direct skip it if it's not valid?

    Please advice.
  2. Sophy
    Admin
    Sophy avatar
    636 posts

    Posted 25 Apr 2008 Link to this post

    Hello Ching,

    If you want to validate the file extensions of the selected files for uploading before the uploaded process starts you can use client-side validation. Please, refer to this help article which describes how to achieve client-side validation using the validateExtensions() method and provides a sample code snippet. I suggest you also take a look at the Client-side Validation online example.

    If you have other questions, do contact us again.

    Best regards,
    Sophy
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top