Question and answer is powered by AnsPress.io
I have defined a input type file in my HTML form but I want to upload pdf and doc file here. So I want to set accept application pdf and doc in file type. How and I set it?
To set accept application pdf and doc in file type, follow this example code.
<input type="file" class="form-control" name="my_file" id="resume_file" accept=".pdf,.doc,.docx">