Limit File Types Shown in Browse Window

前端 未结 2 534
温柔的废话
温柔的废话 2021-01-20 14:07

Is there really NO WAY AT ALL to limit the file types that are shown in a browse file window? I tried this:



        
2条回答
  •  死守一世寂寞
    2021-01-20 14:35

    It is not possible (for the programmer) to have any influence on the files dialog opened using This is a security feature and nothing much can be done about it.

    If you are in absolute need of this (and other functionalities like allowing multiple selects) then you have to go for a flash (or a java applet etc) implementation of the file open dialog.

    There are implementations available on the net, and IIRC, there is one in YUI.

提交回复
热议问题