Aurigma Forums
»
Upload Suite
»
Discussions – HTML5/Flash Uploader
»
Can't add file filter in open file dialog in Image Uploader Flash
Rank: Newbie
Groups: Member
Joined: 8/4/2013(UTC) Posts: 5
|
Hi,
I need to add file filter in open file dialog that is initialized by uploader.
I'm using aurigma image flash uploader to upload my files.
Please help me to solve this issue.
Thanks
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration Joined: 8/2/2003(UTC) Posts: 876
Thanks: 2 times Was thanked: 27 time(s) in 27 post(s)
|
There is a fileMask property: Code:var fu = $au.imageUploaderFlash({
id: 'Uploader1',
type='flash',
restrictions{
fileMask: [
['Images (*.jpg; *.jpeg; *.png; *.gif; *.bmp)', '*.jpg;*.jpeg;*.png;*.gif;*.bmp'],
['Documents (*.txt;*.rtf;*.pdf;*.doc;*.docx;*.xls;*.xlsx)', '*.txt;*.rtf;*.pdf;*.doc;*.docx;*.xls;*.xlsx'],
['All files (*.*)', '*.*']]}
});
See the documentation articleHowever there is a known problem with HTML5 uploader - it does not handle the file mask properly. If it is important to hide unwanted file types, you should set the type parameter to 'flash' (as I did it on the code snippet above). Hope this helps.
|
|
|
|
Aurigma Forums
»
Upload Suite
»
Discussions – HTML5/Flash Uploader
»
Can't add file filter in open file dialog in Image Uploader Flash
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.