add image support

This commit is contained in:
hippoz 2020-10-02 21:33:03 +03:00
parent ee0869dce7
commit 66075e46b9

View file

@ -26,10 +26,14 @@
<% } %>
</head>
<body>
<% if (fileType !== 'file' && fileType !== 'image') { %>
<% if (fileType === 'audio' || fileType === 'video') { %>
<<%= fileType %> controls name="media" />
<source src="<%= fileUrl %>" type="<%= mimeType %>">
</<%= fileType %>>
<% } %>
<% if (fileType === 'image') { %>
<img src="<%= fileUrl %>" name="media"></img>
<% } %>
</body>
</html>