HTML5 Upload PDF only

今天在公司更新了一個功能是讓使用者上載文件
e.g. PDF/doc/docx等等

希望可以和大家分享

< input accept="application/pdf,application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document" name="Upload Saved Replay" type="file" />
<input accept="application/pdf,application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document" name="Upload Saved Replay" type="file" />

Hope you find it useful

Leave a Reply