html input type file accept text and word files
<input type="file" name="uploaded_file" accept=".txt, text/plain, .doc, .docx, application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document"/>
html input type file accept text and word files
<input type="file" name="uploaded_file" accept=".txt, text/plain, .doc, .docx, application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document"/>
input limit file type html
<!-- (IE 10+, Edge (EdgeHTML), Edge (Chromium), Chrome, Firefox 42+) -->
<input type="file" accept=".jpg,.png,.pdf" />
input field image accept type
<input type="file" name="image" accept=".png, .jpg, .jpeg" />
<input type="file" name="image" accept="image/png, image/jpeg" />
accept and content type
Content-Type header is used in POST , PUT , PATCH to specify
the type of body you are sending to the serve and it's required.
`Accept Header` can be used to ask the server to return
different type of response format
For example :
`/api/xname` endpoint , support both xml and json
as response type so we can add accept header
`application/xml` to get xml result and `application/json` result.
If server does not support such type ,
it will return `406 not acceptable` status code.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us