我想讓我的輸入只接受來自圖庫的文件,而不允許用戶打開相機。
我該如何實現它?Force <input type =「file」>在手機上打開圖庫
ASP.NET
<asp:FileUpload ID="filGallery" runat="server" AllowMultiple="true" />
HTML 5
<input type="file" id="filGallery" multiple="multiple" />
我想要的行爲是一個類似於iOS中8或以下,其中有多個文件輸入啓用couldn發現打開相機
這鏈接可能有幫助https://www.w3schools.com/tags/att_input_accept.asp –
我試圖把'accept =「。pdf」'但它仍然詢問我是否想從相機上傳 – Lucas
另一個http:// stackoverflow。 com/questions/11832930/html-input-file-accept-attribute-file-type-csv –