N
N
Nikolai Vasilchuk2014-03-07 12:45:17
JavaScript
Nikolai Vasilchuk, 2014-03-07 12:45:17

How can I make Safari understand the mkv type in the accept attribute of input[type=file]?

There is a code

<input type="file" accept=".mkv,video/x-matroska,video/*">

In normal browsers, everything works as it should, but safari does not allow loading mkv.
What to write in accept for safari?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikolay Vasilchuk, 2014-11-26
@Anonym

Add to accept video/x-matroska and .mkv

Y
Yuri Lobanov, 2014-03-07
@iiil

Here it says not supported.
https://developer.mozilla.org/ru/docs/Web/HTML/Ele...
Here is the last Not supported just for Safari

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question