diff --git a/ccp/js/inputwidgetcontroller.js b/ccp/js/inputwidgetcontroller.js index 1aedbc2..12c98e3 100644 --- a/ccp/js/inputwidgetcontroller.js +++ b/ccp/js/inputwidgetcontroller.js @@ -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()