I have an input file all extensions are allowed, but usually they will be uploaded pdf.
<input id="myFile" name="myFile" type="file"></input>
var myDocument = $('#myFile').val();
myDocument = 'file:///' + myDocument;
var popup = window.open(documento,
'Documentos',
'titlebar=no,toolbar=no,location=no,status=no,menubar=no,resizable=no,width=800,height=600,top=0,left=0,type=fullWindow,fullscreen=no,scrollbars=yes');
});
"document" has the correct local path, but I have an error in the console:
SCRIPT5: Access is denied.
If I copy & paste the value of document, it opens the file.
Is it possible to preview the file before upload it?