add image support
This commit is contained in:
parent
ee0869dce7
commit
66075e46b9
1 changed files with 5 additions and 1 deletions
|
@ -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>
|
Loading…
Reference in a new issue