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>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<% if (fileType !== 'file' && fileType !== 'image') { %>
|
<% if (fileType === 'audio' || fileType === 'video') { %>
|
||||||
<<%= fileType %> controls name="media" />
|
<<%= fileType %> controls name="media" />
|
||||||
<source src="<%= fileUrl %>" type="<%= mimeType %>">
|
<source src="<%= fileUrl %>" type="<%= mimeType %>">
|
||||||
</<%= fileType %>>
|
</<%= fileType %>>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
|
<% if (fileType === 'image') { %>
|
||||||
|
<img src="<%= fileUrl %>" name="media"></img>
|
||||||
|
<% } %>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in a new issue