Answers for "input type accept"

3

input limit file type html

<!-- (IE 10+, Edge (EdgeHTML), Edge (Chromium), Chrome, Firefox 42+) -->
<input type="file" accept=".jpg,.png,.pdf" />
Posted by: Guest on February-10-2020
1

input type file select only video

accept="video/mp4,video/x-m4v,video/*"
Posted by: Guest on October-14-2020
1

accept vedio pdf files upload html

<input type="file" accept=" video/*" />
Posted by: Guest on February-19-2020
0

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.
Posted by: Guest on December-06-2020

Code answers related to "input type accept"

Browse Popular Code Answers by Language