[SOLVED] Upload control: how to I set the filter in the brower's form

Answered Closed
0
0

The property AllowedFileTypes is used to filter the files that the Wisej control accepts, but has no effect on the browser file chooser. (see attach)

 

Attachment
  • You must to post comments
Best Answer
0
0

Hi Tiago,

What to show is up to the browser. We can only set the accept property. This is the spec

http://www.w3schools.com/tags/att_input_accept.asp

file_extension|audio/*|video/*|image/*|media_type

Now Wisej sets the correct attribute, but we commented out a line in the js library to also filter the accept property when dragging, it will be re-enabled using the correct syntax. We were using regex before.

HTH

Best,

Luca

 

 

 

 

  • You must to post comments
0
0

It’s listed as solved. I can confirm that

upload1.AllowedFileTypes = “.xlsx”;

only shows “Microsoft Excel Worksheet” files.

On the other hand, “.xls” shows “Microsoft Excel 97-2003 Worksheet”.

The interesting bit is that “.xlsx,.txt” filters Excel and text files under Chrome, Firefox and Internet Explorer.

Edge doesn’t pre-select any filter as you can see in the attached file (well you can’t see because I can’t attach a file)

  • You must to post comments
0
0

Thanks Tiago,

we have logged WJ-7239 for that issue.
We will post an answer when it is fixed.

Best regards
Frank

  • You must to post comments
Showing 3 results