Dynamically changing AllowedFileExtensions

Thread is closed for posting
2 posts, 0 answers
  1. Engwar
    Engwar avatar
    4 posts
    Member since:
    Oct 2007

    Posted 27 Oct 2008 Link to this post

    I have a file-upload page where I currently only allow image uploads. It's set up to allow the user to upload multiple images at once and includes a couple of text box fields for each image being uploaded.

    I'd like to change it so that one of these extra fields is a drop-down list that describes the type of file being uploaded (image, movie, document) and then that file will be validated against a different set of extensions.

    So for example the user could upload multiple files on one page. The first might be an image, the second a movie and the third a document and they would each need to be validated as a .jpg/.gif a .mov/.mpg and a .pdf/.doc respectively.

    Is this doable?
  2. Veselin Vasilev
    Veselin Vasilev avatar
    2992 posts

    Posted 30 Oct 2008 Link to this post

    Hi Engwar,

    I am not sure if this could be achieved easily.

    Can you consider the following: adding three instances of RadUpload on the page. The first one will allow only images, the second movies and the third audios. Each upload will have the Add button, so if the user wants to upload only 2 images - he/she can add one more filie input area that will allow only images to be uploaded.

    I hope this is acceptable for you.

    Sincerely yours,
    Veselin Vasilev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top