The accept attribute of the <input type="file"> element
would not restrict the possible file types, that could be selected for upload
. It will only configure the Select file dialog to display those files, that match its value. Any user, however, could skip this restriction, by selecting All
from the Select file dialog File type drop-down (screenshot attached).
attribute could be used in the <input> element, from which the Kendo Upload gets initialized. Its value would be automatically applied on the widget too. Here you could find a small sample demonstrating that
Nevertheless, the above could not be considered a reliable approach for restricting user input. Therefore, I would recommend you to use the Upload validation functionality
, which is available for the Kendo widget.