我正在使用 PLupload,它使用的是 HTML5 运行时。
在过滤器中,它似乎只接受一些过滤器,
例如,如果我有:
filters:[{title:"Custom files", extensions:"pdf,png,gif,docx,doc,xls,xlsx"}]
然后它会过滤,所以我可以选择 pdf、png 和 gif 文件,但不能选择 docx+ 文件。
它们的顺序无关紧要。例如
filters:[{title:"Custom files", extensions:"xlsx,pdf,docx,png,xls,gif,doc"}]
会产生相同的结果。
生成的输入具有application/pdf,image/png,image/gif,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/msword,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
作为其值的接受属性。
那么,这是怎么回事,这个问题只存在于 HTML5 版本中,flash 版本过滤正确吗?
如果 html5 版本不支持过滤器,我会完全理解它,但它似乎确实......有点?