removed too hard constraint on mime type

This commit is contained in:
dcore94 2023-06-14 19:30:21 +02:00
parent 7e11355a89
commit 7f63a6f321
1 changed files with 2 additions and 2 deletions

View File

@ -169,13 +169,13 @@ class FileInputRenderer extends Renderer{
const ename = tgt.getAttribute("name")
if(ename === this.name){
const file = ev.target.files[0]
if(file.type !== this.schema.contentMediaType){
/*if(file.type !== this.schema.contentMediaType){
alert("Unsupported media type. Must be " + this.schema.contentMediaType)
ev.stopPropagation()
ev.preventDefault()
tgt.value = null
return false
}
}*/
if(file.size > 100*1024){
alert("This input allows only small files (100K). Use references instead ")
ev.stopPropagation()