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

Notification

Icon
Error

Options
Go to last post Go to first unread
BrAiNumbc  
#1 Posted : Thursday, November 14, 2013 7:28:58 AM(UTC)
BrAiNumbc

Rank: Member

Groups: Member
Joined: 2/12/2004(UTC)
Posts: 24

Was thanked: 1 time(s) in 1 post(s)
I use the ImageUploaderFlash on a web site to let users upload one single PDF file. The following works fine for the most part. When users try to drag/drop any other file type or more than 1 file, it lets me give them a warning

<Restrictions FileMask= "'*.pdf' MaxFileCount="1" />

The problem is, in addition to dragging/dropping files I enabled the button that lets users open a windows file dialog to search for their files , the file types dropdown automatically defaults to image files and gives you the option for "Images, HTML Files and all files.

Is there a way to make pdf files the only type of document that shows up in this dialog? I've tried

FileMask=

"[['Documents (*.pdf)', '*.pdf']]"

But that still doesn't do anything either. I'm trying to make this site as dumbed down as possible and we instruct users to only upload a PDF, but as any web designer knows, you have to try to make your interface as simple and half-holding as possible. If people are allowed to try to select file types that they can't use, they're going to get frustrated.

Here is a screenshot to help illustrate my issue:

www.bulala.com/filemask.png

Andrew  
#2 Posted : Thursday, November 14, 2013 8:41:00 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)
As far as I understand, file masks are not directly supported by HTML5 and it is not so easy to manage the file filter on the open file dialog. If it is critical to limit the file mask, I recommend to force it to load Flash uploader using Type="flash".

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.