Open navintati opened 5 years ago
same problem,don't know how to resolve.
Can you link to a minimal example of how to reproduce the issue?
Hi i'm facing the same issue and here's an extract of my code
js part :
else if(format == "odf" || format == "odf" || format == "ott" || format == "txt" || format == "pdf"){ document.getElementById("previewDoc").removeAttribute("hidden"); document.getElementById("previewDoc").setAttribute("src",tmpPathFile+tmpPreviewFile["text"]); }
i'm removing the src higher to "empty" it tmpPathFile end with a / and is the relative path to the folder containg the file which name is stored in tmpPreviewFile["text"],
format is obtained like this :
var format = tmpPreviewFile["text"].split("."); format = format[format.length-1];
my HTML part : `
<br>
<div class="card">
<img src="" alt="Image à prévisualiser" id="previewImg" hidden class="img-fluid">
<input type="text" id="previewTxt" hidden class="form-control">
<iframe src="" id="previewDoc" hidden height='420' allowfullscreen webkitallowfullscreen></iframe>
</div>
<br>
<a href="modalPreviewFiles" class="btn btn-danger text-white" rel="modal:close">Fermer</a>
</div>`
Hey Friends i pull the viewerjs i did changes for .odt file in code and opening on the browser it's not opening but it's downloading the same odt file.
pls, friends, i need help.