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?
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?