bug表现
小程序web-view中,如下使用,部分文件格式(如docx、pdf、xlsx 等)不支持
<input type="file" accept=".doc, .docx, application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-powerpoint, application/vnd.openxmlformats-officedocument.presentationml.presentation,application/pdf,text/plain">
预期表现
打开本地文件夹之后,大部分常用文件类型均可支持
解决方案:
<input type="file" accept>