This is a migrated thread and some comments may be shown as answers.

Dynamically changing AllowedFileExtensions

1 Answer 43 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Engwar
Top achievements
Rank 1
Engwar asked on 27 Oct 2008, 10:03 PM
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?

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 30 Oct 2008, 04:59 PM
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.
Tags
Upload (Obsolete)
Asked by
Engwar
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or