if the user uploads an image file, it will display the image on the selection. But how about pdf? because in my project requirement when the user wants to upload a pdf file it will show a pdf image/logo. I need an assist for this type of issue.
Thank you so much in advance
here my html codes :
<img class="img-thumbnail thumbnail-size" src="#" width="50" height="50" id="image3"
<li>
<img class="img-thumbnail thumbnail-size" src="#" width="50" height="50" id="image3" />
<button class="btn btn-default glyphicon glyphicon-trash btn-sm" onclick="ClearImage('3')" type="button" />
<input id="file-3" name="uploadImages" type="file" onchange="readURL(this, '3');" class="filestyle" data-buttontext="DOCUMENT 2" data-buttonname="btn-primary" data-size="xs">
</li>
/>