How to change the allowed extentions depending on a variable

Upload core product.
Post Reply
Indu
Posts: 19
Joined: Tue Mar 10, 2009 6:09 pm

How to change the allowed extentions depending on a variable

Post by Indu »

We do have a requirement like When a variable is 1 then allow particular extention (like jpeg and doc,docx) and varible 2 then allow some more extensions..Is ther any way to achive that??

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: How to change the allowed extentions depending on a variable

Post by support »

You can have a previous ASP page where you select 1 or 2 then you build the applet HTML from ASP again with the correct variable depending on 1 or 2. Another solution is to update the variable from JavaScript: document.fileupload.setParameter("name","value") or document.fileupload.setProperty("name","value") depending on extra or regular parameter. See FAQ at:
http://www.jfileupload.com/products/jfi ... aq.html#49

Post Reply