Rank: Newbie Groups: Member
Joined: 3/16/2009 Posts: 9
|
Hello,
Could you please post an example thats shows how to set Allowed Extensions of an uploader on a clinet side. I have some problems with setAllowedExtensions and getAllowedExtensions, but maybe I'm doing something wrong.
Thanks in advance!
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, Here is the sample code to set allowed extension to only allow ".bmp" and ".gif" file:
Code: JavaScript
//Get the uploader object
var uploader = eo_GetObject("uploader1");
//Change allowed extension
uploader.setAllowedExtension(".bmp|.gif");
Thanks!
|
Rank: Newbie Groups: Member
Joined: 3/16/2009 Posts: 9
|
Thanks, it does the job!
Another quick question, it might save me some trouble. Is it possible to display progress bar only after user clicks to submit the file, without using AJAXUploaderProgressDialog control? I like the default progress bar in LayoutTemplate, but the only problem with it is that it is displayed all the time.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
|