I have a page which it's only purpose is to upload files from a phone to a computer, I'm willing to make buttons like WhatsApp attachment system where there is a button for documents, another for images, etc. upload page on phone
how can I share a file from WhatsApp chat directly into my upload page? (if I don't know where its stored in WhatsApp directory if I have like a thousand pdf).
if I click the button which is gonna upload a pdf, how to make the file browser show the recent documents like WhatsApp attachment system?
I tried adding accept="images/*"
.. it works fine for images, but when I tried accept="application/pdf"
it gives me the three options, when I choose browse files, it shows me the complete browser where I can choose images or pdfs or other extension.
This is a browser feature. The accept
attribute tells the browser suggested file mime types. You can always add a mime type check on the server side so anything except pdf files wouldn't be allowed to be uploaded.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.