Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
ArunG  
#1 Posted : Tuesday, November 19, 2013 6:57:36 AM(UTC)
ArunG

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
Andrew  
#2 Posted : Tuesday, November 19, 2013 10:56:10 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 870

Thanks: 2 times
Was thanked: 26 time(s) in 26 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 article

However 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.
Users browsing this topic
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.